-
- Managed C++ library doesn't output to dll?
by aeoth1
- 2 Replies
- Last post
by aeoth1
- First off, I'm not a C++ guy. I do however want to compile a managed C++ library to use in a C# plugin for WLM I'm developing. I need to compile it to sign it to stick it in the GAC. WLM plugins will refuse to run the code unless its in the GAC (fantastic :/) The library is DirectDrawOverlayLib , which I've got to compile after installing BOOST and the DirectX SDK. The only problem is, its not com
-
- Thread stacks consumes all address space
by jfranzoy
- 7 Replies
- Last post
by Mark Gilbert
- Hello. I am a library writter/mantainer. In one of the libraries there is a Thread class. A clien program needs to launch a lot of threads, kind of 3K or 4K threads. The problem is that virtual address space get exhausted because every thread take 1MB for stack.
I was asked to provide a way to limit the virtual address space consumed by the stack of a thread. Browsing the documentation I fo
-
- SendNotifyMessage - Controlling another process?
by quantass
- 4 Replies
- Last post
by Simple Samples
- I'm trying to automate Acrobat Pro 7 with the SendNotifyMessage win32 api command from my C# app. I created a .net windows service which watches a folder for a specific file. With the correct file the service launches the acrobat process via Process.Start() then uses SendNotifyMessage to simulate keypresses to get to the correct menu option. The problem Im having is the SendNotifyMessage(hwnd_mai
-
- C++ "interface" and "abstract" keywords
by LouArnold
- 6 Replies
- Last post
by LouArnold
- I'm a bit confused about the above keywords. The documentation doesn't expressly answer my questions: 1) Are these MS CLR specific or also included in the C++ standard 2) When do you use "interface" and when do you use "abstract" I am familiar with their syntax, but its not clear which to use to declare a managed base class with a few pure virtual functions. The class is to b
-
- getline() bug in VC 6.0 occurs in VC2005.net?
by jaxrpc
- 5 Replies
- Last post
by Bite Qiu - MSFT
- Hi, i am trying to write a simple program that reads 2 getline(str,cin,'\n'); but it will always skip the 1st getline and only the 2nd getline appears to be working. The program can be compiled without errors and can be run. The program i wrote is a very simple cin / cout program like the 1 shown in the below link which points to the bug.
http://support.microsoft.com/kb/240015
-
- Adding Resource data to an executeable without an RSRC section
by DarkPressure
- 1 Replies
- Last post
by Ayman Shoukry - MSFT
- Hello,I am currently stuck on a problem. I am trying to add an Icon to an external executeable.Meaning: a executeable, which I don't have control of the original source. Now I'm trying to add an Icon as resource to this executeable, but this doesn't work using the standart APIs "BeginUpdateResource", "UpdateResource", "EndUpdateResource". As they don't seem to add the
-
- Tread pointer not valid at startup
by bmacri
- 3 Replies
- Last post
by bmacri
- Hi All,
I'm working on converting an MDI app to UNICODE. Everything compiles but when I go to run pThread is NULL in the following code. Does any body have any idea why this would happen I have already converted to other apps and they work fine.
int AFXAPI AfxWinMain ( HINSTANCE hInstance , HINSTANCE hPrevInstance ,
LPTSTR lpCmdLine , int nCmdShow )
{
ASSERT ( hPrevI
-
- Memory leaks when starting program
by MustangCobra
- 5 Replies
- Last post
by Simple Samples
- Hi All
I thought this was a debugger issue in Vista but it now appears to be a specific program issue so have re-posted the original question.
Sometimes when I run our program in debug, the splash screen loads and when the mainframe is about to appear for our program, it unloads itself.
In the output window the following is noted:
Warning: failed to load menu for CFrameWnd.
-
- Adobe\Acrobat 7.0\ActiveX\pdfshell.dll appearing in my executable
by VoiceOfExperience
- 6 Replies
- Last post
by VoiceOfExperience
- During execution under the debugger of the debug configuration of MyOgm, I see the following in the output window.
'MyPgm.exe': Loaded 'C:\Program Files\Adobe\Acrobat 7.0\ActiveX\pdfshell.dll
Since I am not using pdf or ActiveX in my program, where did this come from Is VC++ linking it into MyPgm How can I remove it, and all similar baggage
-
- Problem using unmanaged static libs from managed C++ Windows Form Application in VC2005
by ArtiB
- 5 Replies
- Last post
by Amya
- I have some Static libs which were intially implemented in VC6 and then converted to VC2005. When I try to use these in my managed C++ application, I am getting the following exception: An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module. Additional information: The type initializer for '<Module>' threw an exception. Any comments/url is appreciated.
-
- Migrating to VC2005
by pgoel6uc
- 4 Replies
- Last post
by pgoel6uc
- I am trying to migrate my C++ codes written using VC6.0 to VC2005 but having some problems. These seem very trivial, but I am just unable to get around it. When I use the statement "#include <iostream.h>", I get "iostream.h: No such file or directory" Then, I try, "#include <iostream>", which seems to work, only that now it gives a fatal error on "cou
-
- Utilities
by reena vade
- 6 Replies
- Last post
by reena vade
- Hello there,
I am using utilities from a program and trying to imbibe them in my program.Can anyone help me in implementation of the utilities eg. I know all the factors to be used but their syntax is not working.Also if anyone can help me with a good tutorial to write the syntax,it will be very helpful.
Best Regards
-
- Bug in __asm with absolute addresses?
by Myria
- 1 Replies
- Last post
by Mike Danes
- I was trying to intentionally cause a STATUS_ACCESS_VIOLATION exception, so I did this:
__asm { mov eax, [0] }
However, the compiler assembled this as B8 00 00 00 00, or "mov eax, 0".
I'm using VC8 Service Pack 1.
-
- How to erase a drawing on the desktop?
by kteegala
- 7 Replies
- Last post
by Simple Samples
- I've drawn a rectangle at a given location on the desktop using NULL . This drawing is not associated with any window. How do I erase it I tried the following but it didn't work.
/ draw rectangle on desktop GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); HDC hdc = GetDC(NULL); Graphics graphics(hdc); Pen pen(Col
-
- WM_CLOSE Message not caught!
by GET&#64;h
- 5 Replies
- Last post
by GET@h
- Hi Guys, I have 2 applications writen in visual c++ 2005. Application1 runs Application2 in a separate process. When Application1 closes I need to Application2 to close too. Here is my code: Application1 creates Application2: // Run the VSR Program to log VSS data. STARTUPINFO siStartupInfo; memset(&siStartupInfo, 0, sizeof(siStartupInfo)); memset(&piProcessInfo, 0, sizeof(piProcessInfo));
-
- Please help me
by DeamonX
- 1 Replies
- Last post
by artcodex
- I am trying to learn c++ and c but want to also be able to compile c# with the command line. Before I used C# express edition to compile and all that. I want to learn c++ and c by starting from scratch EX: Jedit, Notepad, etc. I know I got to install the .Net SDK but what do I do after that. Do I have to setup environment variables like you have to do with java compiler If so after that do I just
-
- Help Needed...
by Deepak
- 3 Replies
- Last post
by decyclone
- My Application have a client-server model developed in C++. The client has to fetch the url of a website (say hotmail.com) and then fill the username and password fields in the page. Can some one tell me how to fetch the url and then fill the fields in VC++
-
- VS2005 C++ debuggin
by patti_nyl
- 8 Replies
- Last post
by patti_nyl
- HI, I am having a problem.
When I am debuggin my application and dll's VS2005 Is crasching on the same line.
The message is "Microsoft Visual Studio has encountereed an internal error." I have no Idea what the problem is, how do I found out what is wrong in my code or somewhere else I have to close down VS2005 the hardway with <Ctrl>+<Alt>+<Del> to get it work
-
- executing my compiled code
by aaegh5
- 2 Replies
- Last post
by Marius Bancila
- I have written so many executable codes which i have successfully compiled but I don't know how to execute them on Visual C++. I cannot locate any "EXECUTE" button on Visual C++. How do I go about this
-
- Function calling from another process
by Naska47
- 7 Replies
- Last post
by Naska47
- I'm look for a way to have process 'A' call a function in process 'B' using shared memory (or directly accessing process 'B's memory) and be able to pass in function parameters. The function needs to be executed in process 'B'. If this is possible in unmanaged C++ please let me know how.
-
- Cannot find English(Neutral) in Resource Editor of VC2005
by Chunhua Liu
- 2 Replies
- Last post
by Chunhua Liu
- There are two "English (United States)" showed in the Language list.
I think the other one should be English (Neutral).
I am using a English version XP, but region was set to Chinese (P. R. C.).
-
- Module def file not working with VC++ 2005
by djboris
- 1 Replies
- Last post
by Andreas Masur
- Hello, I have some problem with the .def file using if I want to create DLLs. I have installed the VC++2005, (MSDN), and SDK as well. I copied the BIN, LIB, and INCLUDE folders to the right location I adjusted the "AppSettings.htm" // WIN_APP.disabled = true; // WIN_APP_LABEL.disabled = true; // DLL_APP.disabled = true; // DLL_APP_LABEL.disabled = true So DLL should be OK. I can export f
-
- Accessing a managed array ouside of its method
by dec0ded
- 4 Replies
- Last post
by dec0ded
- Hello all, I am trying to access a managed array created in one method, within another method. The array can not be outside of this method as the dimensions are unknown until this method is ran:
Code Snippet
// Populate User List 2d Array int UserArraySize = UserTextArray->GetLength(0) / 2; array<String^,2>^ UserList = gcnew array<String^,2>(2,UserArraySize); I need to
-
- Beginning C++
by escanive
- 10 Replies
- Last post
by itchy-intermediate
- Hi,
I'm 16 years old and I want to start programming in C++. I have decided to use Microsoft Visual C++ Express to compile with. My goal is to make my own 3D game, but I know there are many years before I can do that.
The first thing I want to do now is to create a simple Console program saying "Hello world". Like this one I found on Wikipedia:
#include < iostream > #inclu
-
- BackupRead "Access denied" Problem (and backing up files in general)
by cottonmouth
- 9 Replies
- Last post
by Simple Samples
- Hi all, I'm creating a backup application and I need to be able to read from and write to any file in the computer. This includes system protected and files locked by other processes. Currently I'm trying to read the registry files in the C:\WINDOWS\system32\config directory. My code successfully acquires the SE_BACKUP_NAME privilege, can get HANLDEs to the files using CreateFile, and can retrieve