Search:
Type: Posts; User: quandary
Search:
Search took 0.06 seconds.
-
March 20th, 2009, 06:05 AM
Haha, very funny.
I was using Linux that year...
I just hadn't had a problem in that year, so I didn't have to come back here to write that.
But comes time, comes a new (better-paying) employer,...
-
March 20th, 2009, 05:36 AM
#include <string>
#include <sstream>
#include <fstream>
e.g.
#include <iostream>
#include <fstream>
#include <exception>
-
March 20th, 2009, 05:32 AM
-
March 17th, 2009, 10:46 AM
Typical Microsoft documentation.
Long, imprecise and useless.
Create .lib file from .dll
search c:\program files\Microsoft Visual Studio for dumpbin.exe
Copy it to your project path
-
March 17th, 2009, 10:32 AM
The below code converts an int (baseX) to a C-String
Substitute int with long long, and reverse the direction of the program flow.
inline LPTSTR RADIX_itoa(int iNumber, LPTSTR lpNumber, int...
-
March 17th, 2009, 09:18 AM
The provider company has filed bankruptcy already some time ago...
-
March 17th, 2009, 09:11 AM
No, I'm not, since I cannot get CString to work with my compiler...
Why use CString anyway?
Use the normal std::string filename, then you can do filename.c_str().
Then, your application is...
-
March 17th, 2009, 07:55 AM
Good idea, just at the moment, I'm playing with the Microsoft Interface Definition Language Compiler.
-
March 17th, 2009, 07:22 AM
Can I generate a LIB file somehow, if I only have the dll?
-
March 17th, 2009, 07:21 AM
Unfortunately, I need most of them!
-
March 17th, 2009, 06:21 AM
There's an example of how to do it in Delphi on CodeGear.
I've been able to port it to C++. Problem solved.
-
March 17th, 2009, 05:37 AM
#include <tchar.h>
CString filename(_T("Hello_World.txt"));
LPTSTR lpFileName = (LPTSTR ) malloc( (_tcslen(filename)+1)*sizeof(TCHAR) + sizeof(TCHAR));
_tcscpy(lpFileName, filename) ;...
-
March 13th, 2009, 06:54 PM
Avoiding checksum tests on filez and dll injection detection.
But I guess you would call that illegitimate.
But it works with read/write process memory (if you do a GetDebugPermission), even on a...
-
March 13th, 2009, 04:30 PM
Question:
I have a dll that exports some functions.
Like:
EXPORT char* WINAPI WebServicesGetPluginName()
EXPORT bool WINAPI WebServicesInit(char *szAppTitle, char* szPath, IDispatch*...
-
March 11th, 2009, 04:03 PM
Thanks for the tipp ! ! !
That has helped somewhat.
That was just another reason why it did crash.
Now that I have found out all the reasons, I'll share it:
1. If I load the C++ dll from an...
-
March 11th, 2009, 04:40 AM
I have a question:
My application calls a C++ dll.
The C++ dll in turn has to call a VB dll (device driver).
Now, I can call the VB ActiveXdll from my application without problem, but if I...
-
August 16th, 2008, 11:35 PM
Here's my version:
Note that for unknown reason the memset '\0' at the end of chrarry_VersionNumber would not be necessary.
This way it's much more clear what the last few statements do.
-
August 16th, 2008, 11:13 PM
yes, that's why the original version was:
sscanf (charry_PRGresponse,"%*s [Version %s]", chrarry_VersionNumber);
Now notice the %*s:
This is a wildcard for several characters, which sscanf...
-
August 16th, 2008, 10:26 PM
Yes, that's exactly what I meant with one of my previous posts, except that you just copying the char instead of using strcat, but that's more efficient.
In the meantime I intended to strstr ] and...
-
August 16th, 2008, 10:13 PM
This outputs:
v: Microsoft Windows XP [Version 5.1.2600]
There's no point in sscanf'ing a string I already have...
The output is expected to be:
v: 5.1.2600
-
August 16th, 2008, 10:02 PM
I got it, the MSDN sample now works:
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdarg.h>
-
August 16th, 2008, 09:43 PM
Yes, I am.
I still need to lookup va_arg for StringCchPrintf
HRESULT StringCchCopy( LPTSTR pszDest, size_t cchDest, LPCTSTR pszSrc)
{
// char* strncpy(char* dest, const char* src, size_t...
-
August 16th, 2008, 09:20 PM
chrarry_VersionNumber[strlen(chrarry_VersionNumber) -1] = '\0' ;
is not the bug. It is an allowed expression.
I think I'm getting the MSDN example to work.
I found the missing defines on the...
-
August 16th, 2008, 09:06 PM
I wanted to retrieve the version number without using the Windows API.
Well, I can use GetOSDisplayString from the Windows API
http://msdn.microsoft.com/en-us/library/ms724429(VS.85).aspx
But...
-
August 16th, 2008, 08:49 PM
You mean strstr search for "Version "
and then strcat all strcpy strstr + strlen("Version ") until ']' is reached?
Or did I missunderstand your suggestion ?
Well... that's what I fear, too....
|
Click Here to Expand Forum to Full Width
|