Answer Questions
Damien fromOZ creating a dll with unicode
hey guys, this is a very very simple question. i created a dll project win32 dll. now i am using TCHAR variable in there. and i added the _UNICODE in the preprocessors to make my TCHAR's wchar_t. but somehow its now wchar_t, they r still char's. so in other words, how can i make my dll unicode thx in advanced i deleted my upgraded project from VS2003 and created it again with VS2005 and it seems to be compil ...Show All
German Schuager BUG: Potential Memory Leak generated by STL deque
BUG: Potential Memory Leak generated by STL deque. FIX: Add a little code and it will work pretty well. I submitted the problem about 4 years ago, but VC++ SP5 still has the bug. ISSUE: STL map and STL set are not ready to be exported from DLL. FIX: Modification must be made. Please report the issue at http://lab.msdn.microsoft.com/productfeedback/default.aspx so that the owners would take a ...Show All
JordanS C2664 cannot convert from 'System::String ^' to '_bstr_t'
This may seem silly, but how do you convert from a managed System::String to BSTR or _bstr_t or ANY other string (const char *, etc.). This would be required to call an old COM interface from a managed C++ app. If this has already been answered I apologize. I searched but did not find anything. Helper functions and constructors and member operators have been known to help. For example in the d ...Show All
skop Progress Bar assistance
I am new to using Visual C++. I used a Control box in the Resource view tab to create the progress bar in the dialog box. This puts all the information in one file. In another file, I want to update the same progress bar so that it looks like it is downloading. How do I do that I've tried everything I could think of which is not much since I am new to this and they don't work. For example: one file Progress.cpp: Member variable,m_pBar, is wha ...Show All
Lakshmikanthan problem using CString::Format
Hi, I wrote the following code in my project: CString s; s.Format("%2d", num1); but it generates the following error message when compiling: d:\my documents\visual studio 2005\projects\pt24\pt24\expression.cpp(74) : error C2664: 'void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char [4]' to 'const wchar_t *' with [ BaseType=wchar_t ...Show All
Bill DiPierre trackBar bug? Visual C++ 2005 Express Beta 2
Hello, I have set the trackBar to max 10 min -10 These figures are accepted, the build goes OK and the app runs and I can select trackBar values between -10 and +10. But! On three occasions when making unconnected code changes, I have found that when I ran the app it was not possible to move the trackBar pointer. Have now seen on one of thjose occasions that the -10 figure had changed to 10 ! This seems odd. An ...Show All
derohanes ATL Server Performance Monitor classes and PERF_ELAPSED_TIME.
I am using the ALT Server performance monitor classes to create performance counters. The performance counters that are defined as PERF_COUNTER_RAWCOUNT are working perfectly. The performance counters defined as PERF_ELAPSED_TIME are not. // Definition for the performance object DECLARE_PERF_CATEGORY_NO_INSTANCES(QuemonPerfObject, 1, _T( "Quemon" ), _T( "Quemon Performance Objects" ), -1); // Definition for ...Show All
koo9 Visual C++ compiles much slower on dual core processor
The Background: I recently upgraded from a 2GHz AMD Athlon machine to a 3.2GHz Pentium D dual core processor, thinking that my Visual C++ (.NET 2003) compile times would decrease significantly. In fact, it went the other way round. One of my library projects requires 11 minutes to compile on the AMD machine, but takes 25 minutes on the dual core machine. My entire set of projects compiles in about 4 ho ...Show All
macupryk VC++/MFC 8 not stable
Hey, I am affriad to say MFC 8 that comes with VS 2005 isnt stable at all. im working in a studio trying to work on a project, and i keep on wasting time on worthless issues. All of which have to do with pointers and the new operator. Latest issue is it will declare thepointer if i told it to load configuration from a file. but it wont declare it if i decide to load the configuration manually, i really dont know what difference does it make. im ...Show All
VB Technical Support Corrupt Builds After Cancel
Our team has a ~50 project solution with a few dlls, lots of libs, and three executables. If I do a build solution, and at any point during the build hit Control-C to cancel it, whatever is being built at the time I hit the button is now corrupt. It looks like it leaves the partially created .obj, .exe, or .dll around and doesn't detect that it only got halfway through. Is this a common symptom Is there some known fix (MSDN and google searches ...Show All
user5546 partial class how-to?
hi, i have been looking at the microsoft help files and how-to's with no luck on finding how to create a partial class. I need to create a partial class for a datatable i am using. the first information i found just didnt work at this location in the help file... ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_raddata/html/dfbc21eb-7ea2-4942-addd-49677f5493be.htm the link on that page to the partial class definitions also didnt work when ...Show All
Rahul Kate How to access a database
Dear All, I am new to Visual C++ 2005 and I would like to write a network application that uses native win32 C++ and that stores and restores data to and from a different databases (depending on the setup). I am planing to make this application portable to be launched and executed on both platforms Windows and Linux. My question is that is there a generic iterface that enables me to connect the C++ application to an ORACLE or MySQL databa ...Show All
rezaA Ctrl+z???
Hi! I am programming an application to send SMS using a module GSM. After write the text I have to "press" Ctrl+Z (end of file). How Can I do it in my application (I use Visual C++ 6.0) Thanks! Assuming you're doing this programmatically rather than typing it in with the keyboard: Ctrl+Z is character code 0x1A. So, if I write something like sprintf(msg , "AT+CMGS=This is the sms0x1A ",m_strPho ...Show All
Scott Stumpf GDI+ Display JPG
Hi all, I am new in Visual C++ and GDI+. I am currently using VC++ express to display a jpg file. I basically, copy from PSDK example and paste it on my program as follow: WM_paint: Image myImage(L"Climber.jpg"); myGraphics.DrawImage(&myImage, 10, 10); It didn't even compile. I am sure, I must have done something incorrectly or not doing something else in the first place. All other example I see in the internet ...Show All
Fylar .net 2005 beta 2 corrupts MBCS strings in resource files
I'm having trouble with a multi-project solution with several Asian Language resources. I've ported this from VC6. It appears that VC8 and the dev studio have fundamental problems with handling MBCS resource text. Here are the easy steps to duplicate this problem: Create an MFC dialog based project in VC8. Use all the defaults Add some new strings to the English String table Create a copy of the English string table, select the ...Show All
