-
- Is it just me? Deleting handlers and functions w/VC2005 impossible
by PAC
- 14 Replies
- Last post
by Royoni
- OK,
I'm completely baffled. I've been a programmer dating back to MSC version 8 for DOS.
For the past couple years I've mainly stuck to VC6 because the newer interface is just too full of fluff and non-intutitive for my tastes. But I do have three projects which require either VC2003 or the latest and "greatest"
One thing that has caused me to waste the most amount o
-
- Is it possible to have dialogs in a DLL created using VC++ 6.0
by nu2vcpp
- 4 Replies
- Last post
by nu2vcpp
- Please tell me how to create a dll with dialogs using VC++ 6.0
-
- Exception from Invoke method
by Paul Wheatley
- 1 Replies
- Last post
by Holger Grund
- I'm getting the message "NULLReferenceException: Object reference not set to an instance of an object"
when executing the following:
if ( this ->mycontrol->InvokeRequired == true )
{
this -> mycontrol -> Invoke ( gcnew MethodInvoker ( this ,&myForm::controlDelegate));
}
The exception refers to the line that calls the Invoke method.
-
- Static and dyanamic linking
by Situ
- 2 Replies
- Last post
by Simple Samples
- How do i create DLL
and what is the difference between Static and dyanamic linking
-
- CHttpFile::SendRequest() hangs
by Shashank5360
- 0 Replies
- Last post
by Shashank5360
- Hi all,
I am using CInternetSession, CHttpConnection and CHttpFile classes to fetch the asp page. The code seems to run fine for the first time, but it hangs on the second call. here is the code i wrote:-
Internet session is initialized in the constructor:-
m_pSession = new CInternetSession("CHttpHelper");
CHttpConnection* pServer = NULL;
CHttpFi
-
- check for process availability using process-id
by aotto
- 2 Replies
- Last post
by Simple Samples
- Hi,
I have a problem to check for process availability in a CRT based application.
I'm using:
pid = _spawnlp (_P_NOWAIT, cmd, buf->data, NULL)
to start a background process and need help to check if the initialisation
of the process fails.
_spawnlp allready return an error if something happen during startup like cmd is missing
but i want to
-
- how to GET a binary file using winsock 2
by M@RIX
- 7 Replies
- Last post
by Sdi
- Hi. this is my first (second actually after posting it in the wrong forum) post of this forum and I hope to get a response my problem is this: I'm trying to write a program that GETs a file from the HTTP protocol using winsock 2. sending the request is not a problem for me. my problem is receiving binary responses. I can GET a text page BTW. this is the portion of the code that does the receiving
-
- c++ debug: STATUS_DLL_NOT_FOUND
by yj2000
- 2 Replies
- Last post
by yj2000
- Hi, I am learning openGL and was trying to write code to display a simple openGL window. I included 'glut.h' in my code but when I run the code (F5), no window is displayed. The output says: Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load The program '[1372] 2.exe: Native' has exited with code -1073741515 (0xc0000135). The platform is VS .Ne
-
- Obtaining a memory address of a variable returned by a class member function
by Sternoceral
- 3 Replies
- Last post
by Sternoceral
- Hello, I'm having some syntax difficulties. I want to set a pointer to point to a variable like this (CTREEITEM is HTREEITEM* , and GetSelectedItem() returns a HTREEITEM) :
Code Snippet
CTREEITEM = &pCtrl->GetSelectedItem(); In the past, I've done something similar:
Code Snippet
pCtrl = &this->GetTreeCtrl(); That worked as expected, but now I'm getting the c
-
- File Handler not working
by Howler72
- 8 Replies
- Last post
by Howler72
- Hello All,
I am having a hard time trying to figure out why my code does not work. I was tasked with writing a small win 32 console app to accept user directory and file name to write to the local machine. My app creates the directory at this point however I cant the file to be written. What am I doing wrong All help appreciated.
Code Snippet
int main(){
char user
-
- Makefile project linking broken in Visual Studio 2005?
by azverkan@hotmail.c
- 0 Replies
- Last post
by azverkan@hotmail.c
- In Visual Studio 2003 and earlier, you could make Visual Studio projects link against the output of a makefile project by setting the Output line. In VS2005 this seems to be broken. Is there something you have to do to get this to work One of the projects I have run into has a work around for this issue by making a separate library project with no files in it, that depends on the makefile project
-
- whats problem with this code? msvs2005
by Av0id
- 13 Replies
- Last post
by Brian Kramer
- hello, it's my first post here, i have little problem, i'am trying to build minimal executable, but i can't, the main problem is 'unresolved external symbol _memcpy' main project options is /NODEFAULTLIB, enabled intrinsic-functions and changed entry-point to WinMainA here it my simple code which reproduce error: #include <windows.h> // Constants struct _TEST { char test1[256]; char *test2
-
- Deployment and DLLs
by J. A. Love
- 22 Replies
- Last post
by J. A. Love
- 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
-
- CWinFormsView VC2005
by Espen Eriksmoen L&#216
- 0 Replies
- Last post
by Espen Eriksmoen L&#216
- We are integrating .NET UserControls into MFC using the CWinfFormsView class. It works great except for a few things. The most important issues is TAB navigation and tooltips (running the same usercontrol on a modal WinForm works fine).
TAB navigation seemingly works, but often suddenly stops working at a specific controls (running the same usercontrol on a modal WinForm works fine)
Espe
-
- VS 2005 and Qt QString
by TDobmeye
- 14 Replies
- Last post
by TDobmeye
- I am trying to convert a QString to a std: tring using VS 2005 and Qt 4.3.0. There is a function in QString::toStdString( ) that returns a std: tring and I have used this many times when I used VS 2003 and Qt 4.3.0 but I was recently forced to upgrade to VS 2005. Now I have been crashing in a function and I have narrowed it down to this call. I have commented out everything but this one line for c
-
- question about backups and .ncb files
by peterson
- 1 Replies
- Last post
by Ed Dore
- I wanted to make some backups from my source but the portable backup device has limited space and copying needs long. In order to save some space I wrote a script which will delete all folders with name Debug or Relesae. I think I don`t need that folders because I can recompile my source. What about .ncb files Them are quite big. I think them have basically just some informations which speed up re
-
- Problem with NULL in visualstudio 2005
by Venu557822
- 6 Replies
- Last post
by Marius Bancila
- Hi, I am trying to compile VC++6 code in 2005. I am having problems with NULL any one can explain me how do I fix this error message
My code is as below..
static vector < int >::iterator data = NULL;
I got the error message below.
f:\test\test.cpp(20) : error C2440: 'initializing' : cannot convert from 'int' to 'std::_Vector_iterator<_Ty,_Alloc>'
1
-
- Reg 64-bit support
by C&#43;&#43;New
- 1 Replies
- Last post
by einaros
- Hi,
I am relatively new to Visual C++ and require your help on this.
I have C++ code which is required to run on both 32-bit and 64-bit Windows. Can I use Visual C++ 2.0 to compile the C++ code or I would need Microsoft Visual C++ 2005 to do this
The http://en.wikipedia.org/wiki/Visual_C ++ says that Visual Studio 2005 Standard and Professional editions have x64 compiler support .Bu
-
- Dictionary<TKey, TVal> subclasses invisible
by Chris Csernica
- 10 Replies
- Last post
by Chris Csernica
- I'm trying to get at the Enumerator of the ValuesCollection of a Dictionary, but the trouble is that the compiler doesn't seem to know these classes exist. Declarations such as the following result in the compiler handing me a C2065 when I try to reference the variables.
Code Snippet
using namespace System; using namespace System::Collections::Generic; --snip-- Dictionary<TKey, TVal&g
-
- Draw to screen without using OnPaint()
by Harry123
- 2 Replies
- Last post
by Simple Samples
- Hi, my (PocketPC) app normally used GAPI but I'm now moving it to DirectX to support WM6. (My app is written in VC++) I have a question:
If I wish to clear the screen and draw stuff to it. If I call the below Render function in the OnPaint() function of my dialog everything is fine and dandy:
LPDIRECT3DMOBILEDEVICE g_pd3dmDevice = NULL; // My rendering device
VOID Render() {
-
- VC++ 2005 redistributable
by Jay K
- 14 Replies
- Last post
by Nelson B
- Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from th
-
- LNK2019 errors - tried everything I could find
by TheJamesF1
- 5 Replies
- Last post
by einaros
- I've tried every bit of help I can find on this forum, and others, and I can't get my code to work. I end up with 15 macro redefinition warnings, which I'd like to fix somehow (but I'm not overly bothered, as long as it compiles), and 15 LNK2019 errors that I just don't understand. I'm using VC++2k5 Express and I've added all the paths and lib names to everywhere I can think of, I have my #pragma'
-
- Creating Menus
by Saurabh Agrawal
- 3 Replies
- Last post
by Bite Qiu - MSFT
- I have VS 2005 and I'm reading a tutorial on creating menus. After designing the menus, I need to add functionality by following these steps: 1. Open the Menu Designer to your menu. 2. Open the Class Wizard from the View menu. 3. The Adding a Class dialog is displayed ... Leave the dialog selection on Select an Existing Class and click OK Since there is no Class Wizard in VS2005, I tried right-cli
-
- exiting a user-interface thread
by jbwitt
- 3 Replies
- Last post
by Simple Samples
- I have a user-interface thread that creates a dialog box:
BOOL tcMyThreadClass::InitInstance() { mCMyDialog = new tcMyDialog; m_pMainWnd = mCMyDialog;
.....
return TRUE; }
I want to terminate this thread (call its ExitInstance()) whenever mCMyDialog::OnCancel() is called. But I can not get mCMyDialog to post the WM_QUIT message to this thread. It will on
-
- primary numbers finding
by teasy
- 6 Replies
- Last post
by Damien Watkins - MSFT
- how I find one number if it is the primary number or not by recursion method in C++ language