I have an application in VC++ 6 (not MFC) , feature requires it to upload a file to a web server on regular basis. Web server is under our control, anonymous upload scripts/page are already setup that would accept a file manually.
How to program in VC++ 6 to upload? which classes to use?
I understand it is much possible with smtp and f...
Hi,
I've got this
WCHAR fileName[1];
as a returned value from a function (it's a sys 32 function so I am not able to change the returned type). I need to make fileName to be null terminated so I am trying to append '\0' to it, but nothing seems to work.
Once I get a null terminated WCHAR I will need to pass it to another sys 32 f...
I got a crash in one of my MFC based windows service. When I analyzed the crash dump using windbg.exe, I got the following on the top of my stack trace. What is this error?
0094fad8 0040d18c
mfc42u!CException::`RTTI Complete
Object Locator'+0x10
...
I am trying to replace new/delete with my own allocator(s). So, overriding placement new and delete - quite happy with that. Looks something like this ...
void* operator new( size_t size, Allocator* a )
{
return a->Alloc( size );
}
template<class T> inline void MyDelete( T* p, Allocator* a )
{
if( p )
{
p->~T();
...
Is it possible to specify the application name which is used by CWinApp::WriteProfileString()?
If I use CWinApp::SetRegistryKey to set the name of my company to "MyCompany", and I call AfxGetApp()->WriteProfileString in my application called "SomeApp", my string will be stored under the following registry key:
HKEY_CURRENT_USER\Software\...
Hi ;
I am using Code::Blocks 8.02 and I have a question .. every time I try to compile minimad.c (the example that comes with Libmad) I get an error message :
sys/mman.h: No such file or directory and of course a bunch of errors to follow :(
I already know that its the memory management library ...
The question is:
Where can I download...
I am getting both errors on the same line. Bridge *first in the Lan class. What am i missing?
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
class Lan{
Bridge *first;
Bridge *second;
Host hostList[10];
int id;
};
class Bridge{
Lan lanList[5];
};
class Host{
Lan * lan;
...
The following code compile without errors. Basically, the C#2005 Console application calls VC++2005 class library which in turn calls native VC++6 code. I get the following error when I run the C#2005 application:
"Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indicat...
I want to code a VC++ 9 based console application which downloads an image from a webserver.
I have code which used to run in VC++ 6, but its giving lot of compilation errors in VC++ 9.0.
I need code which compiles in VC++ 9.0 using MS Visual Studio 2008.
Also I need only win32 code and not MFC.
...
I am doing some maintenance on software and have a problem that I do not understand.
Application was developed using Microsoft Visual C++ 6 and runs on Windows XP. It consists of 21 applications that communicate to each other via UDP sockets. It is a simulation of an embedded avionics system used to debug the system in a PC environment....
I have the following function in C++
void func1()
{
char *p = "Test for memory leak";
}
When func1() is called where is the memory for the variable allocated? Whether in the stack or the heap? Should delete p; be called explicitly?
...
HI
I seem to be getting an CException::`RTTI Complete Object Locator exception once in a while in my VC++ application.
Does any of u know why this particular exception occurs.
i get this when calling the GetLocaleInfo() WINDOWS API.
Any help would be great.
Thanks
...
How do I do to handles some big positive integers (like 9,999,999,999) on Visual C++ 2008 on a 32-bit PC.
Please give an example on declaring, printf, scanf of these big positive integers.
Please consider using 9,999,999,999 in your example.
...
I need some basic clarification on C++ static linkage. I have a file called data_client.lib. There are three independant consumers for the library file a.exe, b.exe and c.exe. There is a service called data_server.exe for which data_client.lib is the interface. Actually, I added another function to data_server.exe and corresponding inter...
I pressed a key that shows formatting in the IDE; I'd like to change it back to what it was before. How do I do that?
...
Using Visual Studio with Microsoft's C++ compiler, we have several source files which use the Microsoft-specific '#import' directive to import a type library. For instance:
#import my_type_lib.tlb
I'd like to remove the #import from the source code, and replace it with a command line step to be executed via GNU Make. The necessary i...
Hello,
Googling nor binging "VC++ What's new C++0x" gives me nothing that tells me what is new.Is there an official page at msdn or something similiar that contains the information for VC++ 10? I've seen such for C#,there must be one for what I'd enjoy to read.
If not, please list the new features available in Visual Studio 2010 for VC...
I have a CPP source file that uses #if / #endif to compile out completely in certain builds. However, this generates the following warning.
warning LNK4221: no public symbols found; archive member will be inaccessible
I was thinking about creating a macro to generate a dummy variable or function that wouldn't actually be used so this...
I want to have a version number string in my source files to keep track of the source version used for the build. I thought I had a solution for this, but it doesn't work consistently and I cannot figure out why.
The number I want to use is the subversion version as output by the svnversion command. I have written a Python script whic...
Here is the scoop:
command I am Invoking:
make -d
I get this error:
Finished prerequisites of target file `stopwatch.obj'.
Must remake target `stopwatch.obj'.
Creating temporary batch file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make35562.sh
cl /I .\include /I "c:\Java\jdk150_13\include\win32" /I "c:\Java\jdk150_13\include" /Fo".\buil...