-
- Compiler producing mismatching PDBs
by Indigox3
- 8 Replies
- Last post
by Reyes Ponce
- I'm using VS.NET 2005 and building a large application with about 100 projects. There is one project in the solution that compiles to a DLL that I need to debug. (i.e. break, and step into the code) However I can't. In the modules tab of the IDE, it says that no symbols have been loaded for that module. I know the pdb is being generated though, has the same filename as my dll, and is being generat
-
- problem in CHandleMap* pMap
by Kishore_83
- 8 Replies
- Last post
by Ramkrishna Pawar
- Hi,
i am getting assertion in the following code part of wingdi.cpp which is a Visual Studio File
i have got valid hObject
but m_hObject CXX0030: Error: expression cannot be evaluated
i am getting unhandled exceptio in CHandleMap* pMap = afxMapHGDIOBJ(TRUE); // create map if not exist
what actually cause this problem.....
BOOL CGdiObject::Attach
-
- cannot convert parameter 1 from 'std::_String_const_iterator<_Elem,_Traits,_Alloc>' to 'const char *'
by Man-Nag
- 8 Replies
- Last post
by Man-Nag
- I am trying to port the following code from Vc6.0 to VC 7.0
It works in Vc6.0 but gives an error in VC7.0
string line;
string::const_iterator p;
string::const_iterator sym_end;
for (p = line.begin() + 21; *p != ' ' ; ++p)
;
sym_end = p;
unsigned long a = strtoul(p, 0, 16);
error C2664: 'strtoul' : cannot convert parameter 1 from 'std::_String_const_iter
-
- Using c# method as callback from c++ dll
by JavierClaveria
- 3 Replies
- Last post
by JavierClaveria
- Hi,
I have some c++ code that I want to use from c# classes.
I have seen that I can call c++ dll functions and methods using dllImport in a very easy way. But I have problems when I call c++ functions and this functions makes callback to a c# function.
I have been testing differents cases.
Case 1:
Call a c++ dll method from c# class. No problem
Case 2:
Call
-
- Problem in Image Retrieving
by krishnasamy
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi,
I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error.
Here I given that code,
//Callback function
pr
-
- Question regarding const& parameters to functions
by Spintz
- 6 Replies
- Last post
by Spintz
- I just heard that doing this -
void myFunction( int i ) { ....( some code that doesn't modify i ) }
the compiler will automatically generate code, making the argument -
const int& i
I never heard of this, and quite honestly don't believe it. I was under the impression you had to declare -
void myFunction( const int& i ) { ....( some code that doesn't modify i ) }
ex
-
- Ref class and friends
by Charles Tam
- 2 Replies
- Last post
by Marius Bancila
- I've been using CPPUNIT for unit testing unmanaged classes.
In particular, I can write an unit test class to test a private function of a class. However, the unit test class must be defined as "friend" in the under test class.
Since, Ref classes (managed ones) does not support friends, as such, how do I test its private functions
-
- IIS6 Executes Borland CGI, but VS Executable Gives HTTP 500
by buzzlight2nd
- 1 Replies
- Last post
by Viorel.
- Please help! Am I missing a directive to get the code to execute in IIS6 IIS6 is installed on 2003ServerR2, Beta. The configuration is OK with the server, because it worked fine with the Borland Executable. However...
C++ Express 2005 Executable causes IIS to give HTTP 500 with the following code, and #include <iostream> is added to stdafx.h as well :
//
#include <stdafx.h>
-
- DirectX and WINAPI
by Cookie.Master01
- 2 Replies
- Last post
by Simple Samples
- Hello,
I wanted to know if anyone can explain to me how directX play/record audio.
does it uses WINAPI command such as:WaveInOpen/WaveOutOpen etc..
http://msdn2.microsoft.com/en-us/library/ms713735.aspx
Thanks.
-
- Atl/Wtl BHO with MFC Extension Dll
by ankurtech
- 3 Replies
- Last post
by Ramkrishna Pawar
- Hi Everybody,
I am stuck in memory management, I am developing Toolbar for IE and FireFox, so i develope two different toolbars oneis for IE using ATL and WTL and other for Firefox using javascript and XUL. Now to provide these toolbar some functionality I am using MFC Extension DLL ( As I need to show some dialog boxs fro this DLL). My problem is that whenever I am trying to allocate a charac
-
- variable in inverted comma
by procpass
- 2 Replies
- Last post
by Jonathan Caves - MSFT
- How can i use variable in inverted comma or what is the alternative of sprintf(stdout, ...) in C++ ex: ReadFromFile("Hello"); char* ReadFromFile(string TextName){ string str; fstream filestr; filestr.open(TextName); ... ... ...
-
- Apply VS2005SP1 to VistaSDK?
by ATASLO
- 1 Replies
- Last post
by Ayman Shoukry - MSFT
- We have VS2005 Pro but the Vista SDK shipped with a version of the C++ compiler that also supports PREfast for doing code analysis. We've since switched to using the compiler from the SDK instead of the one that originally shipped with VS. Some problems with the compiler and linker were fixed with VS2005 SP1 and we'd like to be able to take advantage of those fixes without giving up the PREfast ca
-
- Building the same code ==> different output
by TomFr
- 9 Replies
- Last post
by TomFr
- Hi,
is there anybody from the C++ Compiler / linker team that can answer the following question.
We build our product using VS2003 (C++ Code / Release build). After the product is released we
transfered the code to a different machine for maintenance. We then build the software again using the same version of the tools . To make sure that we can reproduce the original build we did a b
-
- Error in creating Handle for HandleDestroyed
by PeteJM01
- 6 Replies
- Last post
by PeteJM01
- I am trying to create a handle for a custom handle when the window is destroyed I am using the code:
this ->HandleDestroyed += gcnew System::EventHandler( this , &cheat::HandleDestroyed);
I have this placed in the InitalizeComponent event of my windows form.
When the compiler reaches this line it tells me that i need to point to a member function. I think I am doing this wrongly,
-
- InvalidCastException on multi-platform/multi-instance env. (SNMP also)
by o_ganot
- 1 Replies
- Last post
by Feng Chen - MSFT
- Hi, I'm facing a similar trouble to the different scenarios specified above: I wrote a generic SNMP agent infrastructure which implements the Windows SNMP extension agent. This infrastructure is composed of a native C++ DLL which actually implements the extension agent - "Native", and a C++/CLI API dll - "API", which is combined from a native class so it can be loaded by "
-
- Why the size of a "Picture Control" window is not coherence with the resolution of monitor setting?
by farming
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I use MFC in VS2005. I set up a Doc/View (FormView) based application. I want to display two loaded images on the form pannel. The size of loaded image is 720*540 pixels. I put two Picture Controls on the form. I find it can only set to 320*240 pixels each in the resource pannel, but the resolution of my monitor is 1280*1024 pixels. So why this happen When I put mouse on the loaded image, how can
-
- How decorated names /name mangling is done
by Jafar Kumarkiri
- 1 Replies
- Last post
by einaros
- Hi, While reading a COM book I came to know name mangling or decorated names of functions.Is anybody tell me about it
-
- error C2039: '{ctor}' : is not a member of 'ave::Event'
by Deeen
- 2 Replies
- Last post
by Deeen
- I am working with Visual C++ 2005 express edition.
i got following error
1>..\timer.cpp(6) :
I am working with Visual C++ 2005 express edition.
i got following error
1>..\timer.cpp(6) : error C2039: '{ctor}' : is not a member of 'ave::Event'
1> c:\dokumente und einstellungen\din\desktop\test\event.h(21) : see declaration of 'ave::Event'
and this error is
-
- Modeless dialog doesn't open if there are slider controls on it
by bodisan2000
- 4 Replies
- Last post
by bodisan2000
- Hello, I have a problem that is related to the slider controls. The problem is simple: the slider controls are on a modeless dialog. On my vista PC, the dialog opens and the sliders work as they should. But when I send the release build to someone (because the debug release seems to have a problem with configuration) using xp, the dialog doesn't want to open at all. I should say that I did find a
-
- const String comparison intermittently works.
by DannyL9143
- 2 Replies
- Last post
by crescens2k
- Hi,
I wrote some code in managed CLR C++ with Visual Studio 2005. I declared several static const System: trings. When I compare the declared const strings to strings that I am reading from an XML file, 2 out of 3 work. I tried comparing the strings using the == operator as well as the Equal method. I stepped through with the debugger and verified that the strings are identical. Also, I tri
-
- Memory leak
by Saravana Muthu
- 6 Replies
- Last post
by Ramkrishna Pawar
- HI ALL, I got an error as follow when i am executing the code; Debug Assertion failed Program: my.exe File: dbgheap.c Line: 1011 Expression: _CrtIsValidHelpPointer(pUserData) Even after i freed the memory allocated. How to avoid this problem Regards, Saravana Muthu.G
-
- How do you take a c++ file and publish it to a .exe file?
by BobL4944973
- 3 Replies
- Last post
by Simple Samples
- How do you take a c++ file and publish it to a .exe file
-
- Help! - error with chars and ints
by Anonymous559888
- 4 Replies
- Last post
by Anonymous
- I get an error when I try and do this:
Code Snippet
char name[256] = System::Int32::Parse(name->Text); int number = System::Int32::Parse(number->Text); the error I get is this: c:\documents and settings\allan w\my documents\c++\my win app\my win app\Form1.h(172) : error C2227: left of '->Text' must point to class/struct/union/generic type type is 'char [256]'
-
- Problem with GetTextMetrics and Unicode (with some helpful link).
by smart pig
- 4 Replies
- Last post
by Simple Samples
- In a member function of a CView subclass, I have some code like this:
Code Block
TEXTMETRIC tm; pDC = GetDC(); pDC->GetTextMetrics(&tm); When this code is built with unicode option (i.e. UNICODE and _UNICODE), it has the following error when it runs in debugging mode: Run-Time Check Failure #2 - Stack around the variable 'tm' was corrupted. A useful tip is in http://grou
-
- Compile error when including windot11.h
by Danial
- 2 Replies
- Last post
by Danial
- Hi all,
When I include windot11.h in my program, over 100 compile errors appears, could any one help me
I have included window.h, winioctl.h, ntddnids.h before I include windot11.h