Search:
Type: Posts; User: Gonyoda
Search:
Search took 0.08 seconds.
-
December 16th, 2004, 10:11 AM
Well, to tell the truth, I didn't implement the MSDN "rewrite" either. I also hate to copy & paste MFC code since that is often asking for trouble down the line.
I just call the raw API function...
-
December 16th, 2004, 09:50 AM
I enjoy problems like this, so I spent some time tracing throug the MFC code to see if there was anything different from running the code with the splash, or without. And I couldn't find anything.
...
-
December 15th, 2004, 08:54 PM
I've had this same problem, and found the solution in the MSDN Magazine from August 2000.
Since I happened upon this thread (with recent posts) and no solution posted, I figured I'd post the link....
-
January 31st, 2002, 09:05 AM
good thing I haven't downgraded my machine to XP yet, eh?
- John
-
January 29th, 2002, 11:09 AM
I resort to using BoundsChecker, by NuMega. Does an excellent job of finding many memory errors, including memory over/underrun, dangling memory, etc. It even tells you where the memory was...
-
January 29th, 2002, 11:04 AM
All static variables need to be instantiated in a CPP file [I think that's the right terminology]. So in your CPP file somewhere put:
CUtil CUtilFactory::m_util;
This creates the static...
-
January 29th, 2002, 09:44 AM
I've had to use the _i64toa C function.
I wrapped this into a function returning a CString:
CString Int64ToStr(__int64 i)
{
CString result;
_i64toa( i, result.GetBuffer(40), 10 ); //...
-
January 28th, 2002, 07:52 PM
In a word: no
In a sentence or two: Compilers really don't work that way... You need the FUNC() macro in the CPP file because that is where the code needs to be for the .OBJ file for the linker. ...
-
January 28th, 2002, 05:16 PM
It depends on which order the 2nd and 3rd bytes are...
If they are in the same order as PC 16-bit number is, then:
BYTE Buffer[n];
// put data to convert into Buffer, then...
WORD asciisize =...
-
January 28th, 2002, 05:05 PM
Ok, I think you are trying to access a SQL Server database using your C/C++ client program? [Your original email sorta implied the other way around].
If you ARE trying to access the SQL Server...
-
January 28th, 2002, 04:47 PM
Like others have said, this isn't easy to do (or possible) directly in C++. However, if you write your code as a COM object, you can create instances using progid's [regular text names like...
-
January 28th, 2002, 04:33 PM
Yes, you'll need to disassemble and reassemble the 50k message using a message ordering scheme. Basically create a buffer like:
const int BLOCKSIZE = 2048; // or something below 32k - the...
-
January 28th, 2002, 04:14 PM
You can't bind to the same port in different processes. The SO_REUSEADDR only allows re-binding the port within the same process.
- John
-
January 28th, 2002, 04:04 PM
The largest filesize you can write is limited only to underlying disk format. FAT, FAT32 are limited to 4 gigabytes. NTFS is limited only to the amount of free disk space.
If you do write a...
-
January 28th, 2002, 03:59 PM
Are you talking about an extended stored procedure? Or reading/writing directly from/to the raw SQL database files?
ESP are relatively easy, but raw access - you're on your own I think.
- John
-
January 28th, 2002, 03:55 PM
Actually - sprintf() is a C function, but lets not nitpick... ;)
A big problem I've had with rounding is that there are inaccuracies when rounding and truncating certain floating-point numbers -...
-
January 28th, 2002, 03:36 PM
Unless you are using thread local storage (TLS) your two threads shouldn't have separate copies of the same global variable. All staticly declared variables will have only 1 copy of itself in your...
-
January 28th, 2002, 03:09 PM
Does anyone have LPR source code for C or C++? I've browsed through GNU/BSD libraries but haven't (yet) found the source for the LPR program. I often spend a lot of time converting the *NIX code...
-
June 27th, 2001, 08:56 AM
I think more importantly you're looking for BSTR manipulation methods, right? Since a BSTR is a system allocated object (using SysAllocString, for example) you can't really futz with the contents of...
-
June 27th, 2001, 08:42 AM
Easiest thing to do is to start by making a UDL file. Do this by right-clicking in explorer and choosing New, then Microsoft Data Link. If MDL isn't in your New list, you'll need to do it manually....
|
Click Here to Expand Forum to Full Width
|