-
- How can a C++/CLI library catch unmanaged C++ exceptions from an unmanaged library without breaking the C++ stack unwinding?
by KevinHall
- 9 Replies
- Last post
by KevinHall
- I have a static C++ library, built with VS2005, that is used by multiple projects. The library throws C++ exceptions (derived from std::exception) from its public interface.
One project that uses the static C++ library is a .NET class library that is written using C++/CLI. What I have found is that when the .NET class library calls into the unmanaged C++ library and an exception is thrown from
-
- user32.dll was relocated in memory....shell32.dll
by Anonymous565379
- 14 Replies
- Last post
by Frenzy
- i got his message after today update. I'm relieved that it is not just my com but rather the update. Anyone knows how to solve this problem My com seems to hang v often after i got the message. Microsoft should fix the bug quickly.
-
- hi
by GPU
- 2 Replies
- Last post
by Simple Samples
-
- Async named pipe functions
by zbenjamin
- 14 Replies
- Last post
by Simple Samples
- Hello, is there a way to get a async notification from a named pipe handle that new data is available to read. A message or a event would be okay. i know i can wait with ReadFile for available data. But if i want to use named pipes in a gui application with that would block my application loop. regards zbenjamin
-
- How to convert a string to time in C++?
by Alice S.C
- 5 Replies
- Last post
by Alice S.C
- Hi,
I am new to C++, hope that someone could help me with my assignment. I am trying to convert a string to time format in C++.
# include <string>
#include<time.h>
int main()
{
string time = "14:00"; /* representing 2 pm */
return 0;
}
Thanks in advance
-
- after login i found RTHCPL.EXE -Illegal System DLL Relcation
by Muzaffar Sange
- 4 Replies
- Last post
by patsayjack
- After login i found RTHCPL.EXE -Illegal System DLL Relcation
the System DLL user 32.dll was relocated in memory. the application will not runproperly. the relocation occurred because the DLL C:\system32\HHctrl.OCX occupied and address range reserved for windows system DLLs. the vendor supplying the DLL should be contacted for a new DLL.
so how can fine this dll & how i can solve
-
- Don't panic
by Crend King &#40;Old Pr
- 14 Replies
- Last post
by Matt Berry
- When I intend to manually load the user32.dll into memory, after loading the sections and calling its DllMain, an error message appears that the system dll was relocated in memory.
If I load it at its preferred ImageBase and thus do not do relocation, this error occurs. However, if I load it into a system choosed address (pass NULL to VirtualAlloc), no error occurs. I can confirm
-
- GetPathName can't convert to const char
by parreg
- 5 Replies
- Last post
by Nishant Sivakumar
- Hello,
I have a variable defined as CFileDialog dlg (....)
When I go to send it to a program to handle the filepath :
function(dlg.GetPathName()) where funciton is:
function (cons char *fullpathfilename) I get the error during compile for:
"cannot convert parmeter from Cstring to "const char".
Now this same code works on one machine but not
-
- CString: Assertion error while using Mid
by arnezmando
- 3 Replies
- Last post
by arnezmando
- I'm trying to select certain comma delimited fields from a long CString called Msg.
Right now I'm using
sym = Msg.Mid(4,6);
to creat the new string sym from the old string Msg.
I have no problems with the above example but for some reason, I'm getting assertion errors for
sym = Msg.Mid(n,4);
whenever n is greater than or equal to 9.
Any help would
-
- How to remove a property sheet space?
by Mushq
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi, I have created a property sheet and set the wizard mode for that, then added a property page to that sheet, When i execute that i see property page embeded in property sheet and plus some more space(which is not part of dialog) at the border, how can i remove that space. Best Regards, Mushq
-
- How do I compile my final work into an executable file
by Femi555003
- 3 Replies
- Last post
by Shakje
- I saw another post about this, but it didn't really answer my question. I'm using Microsoft Visual C++ 2005 Express Edition and I've been working with this program for months now (at school). But now I'd like to learn how to create an executable (.exe) from the solution/project. Does Visual C++ even do this at all, or do I need to download a different application to do this If Visual C++ does this
-
- GUI Development
by doener
- 2 Replies
- Last post
by doener
- Hello guys,
I have a plan and i want to know if its possible using visual c++ .net 2005! Any input will be welcomed!
My Plan: I want to create a GUI for a microcontroller in which i can write the codes, compile, debug, drag commands to editor windows with pop up information, bind simple data files containing parameters of the different devices i want to write codes for,make some wizards(for
-
- Wow i am suprised i cant find this....
by Tiberius147
- 5 Replies
- Last post
by Simple Samples
- I searched google i searched here and i searched mIrc and no one seems to know how to do this, they tell me to use a difrent compiler but i love microsoft and could not do that. I am sure you guys probably covered it some where but i can't find it so here goes. I use visual studio 2005 standard edition. I recently finished learning the core language of c++ and am moving on to implement that knowle
-
- Memory leak occurs when including afxtempl.h in a console application
by Max Feldkamp
- 10 Replies
- Last post
by Simple Samples
- After much testing, I found that a memory leak that I had was due to the inclusion of afxtempl.h. I had absolutely no implementation of any of the code. The only difference between a build that worked and one that didn't was the inclusion of afxtempl.h. Could someone please enlighten me as to why this might be I was building a console application with MFC.
-
- Textbox with a background image
by oscar.rodriguez
- 4 Replies
- Last post
by oscar.rodriguez
- Hi, I'm skinning my app's textbox, and I've gotten pretty far, but I'm still having a few problems, so I turn to the experts in here. This is pure Win32, not MFC. I already have my image in a DC, and I'm not interested about flexibility in here, so I resort to the following: * My (multiline) textbox is in a DialogBox, and is read-only. * I artificially set the control color to white, capturing WM_
-
- Is there any good tool which can easily get the call graph of one project of vc? Please give the steps to do that.
by su45937
- 7 Replies
- Last post
by aeb
- Is there any good tool which can easily get the call graph of one project of vc Please give the steps to do that.
I appreciate your help.
-
- possible bug in ATL (impersonation)
by CarlosPizano
- 2 Replies
- Last post
by CarlosPizano
- I got tired of trying to find a way to post a bug to the VC team. I saw before you could submit a bug but I cannot find it now. So here it is what I think is a bug:
I have a program that I am making using VC 2005 and ATL. The process starts out impersonating on the main thread. When I run the program in release all is good, but in debug mode it behaves weirdly. I have traced the issue to a
-
- RegCreateKeyEx
by KeeperMustDie
- 1 Replies
- Last post
by TilakGopi
- Hi, I am trying to create a registry key at .NET Windows forms. When I used RegCreateKeyEx I get message: identifier not found( I includet <windows.h> and <winreg.h> ). Where is the problem Maybe there is any other way to create registry key
-
- Deployment and DLLs
by J. A. Love
- 11 Replies
- Last post
by Simple Samples
- I want to distribute my program using a Setup.exe installation. I've ran my app through depends.exe and there's countless DLLs that it depends on. How do I determine which ones to distribute with my app
I know there's a few that should be on the target machine already (kernel32.dll, user32.dll, etc.) but what about the other 22million DLLs that Dependency Walker is telling me I need, do I r
-
- Build dll in VS2005 to work on Win95
by ryan0270
- 12 Replies
- Last post
by Simple Samples
- I need to write a c++ dll that will be loaded by software running on Windows 95 from a VB-ish application. I have the .dll written and working on Windows XP and Windows 2000. When I try to load the .dll in Windows 95 I get an error saying that the .dll could not be found. If I try regsvr32 c:\DLL.dll I an error "GetLastError return 0x00000485" which, according to MSDN , means that it co
-
- Terminate thread
by dellthinker
- 11 Replies
- Last post
by dellthinker
- Hi all. Im trying to find out a way to terminate a thread. This is my basic setup
Code Block
/* This is where i create the thread. */ HANDLE function1; function1[1]=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)startup,&a,0,0); /* And here is where i want to terminate it */ BOOL TerminateThread(HANDLE function1, DWORD status); Can anyone tell me what im doing wrong Because the
-
- Broken! sscanf() and/or sscanf_s()
by Draznar
- 10 Replies
- Last post
by Draznar
- As a new hire as a software engineer for a simulation company, I have been tasked with the problem of porting some programs that were once running and compiling fine on Microsofts Visual C++ 6.0, to the new Microsoft Visual Studios 2005. One specific problem I am currently having is trying to get, the sscanf() function to compile. The code worked fine in the previous compiler, but over here sscanf
-
- gaining access
by semek_
- 1 Replies
- Last post
by Bite Qiu - MSFT
- hi , i am asking wheter you know how to access richTexTBox from program_name.cpp file.
Jacek
-
- Suggestion abt win32 programming
by Usma Farooq
- 8 Replies
- Last post
by Usma Farooq
- Asalam-o-Alikum...!!!
i m new to windows api programming in vc++ 6.0. I want to write a simple progam in vc++ 6.0 that shutdown the computer. this program must use ExitWindowsEx function of some dll file of windows (hopefully user32.dll).
i want also to get knowledge about different data types of windows.
like word, Dword, etc...
Just give me the code of some simple p
-
- Heap Corruption
by Simoncoul
- 10 Replies
- Last post
by amolbk
- Hi, I'm having a big problem that I am um able to solve. I'm trying to allocate memory for a 2D array, but every time I run the program in debug mode I always get an error when h = 2. If I ignore the error and continue on the program will produce the right value, and a as long as the program remains open I can keep using the function and it will no long produce the error.
Code Snippet