Search:
Type: Posts; User: wayside
Search:
Search took 0.10 seconds.
-
June 29th, 2004, 12:42 PM
1) initialize your character array
2) Test the value of the file handle returned by fopen
3) Test the value returned by fscanf
char idNum[30] = { 0 };
FILE * fin = fopen("data.txt","r");
-
June 15th, 2004, 04:37 PM
I never used a disassembler so I can't recommend one, google around I'm sure you'll find one.
I never heard of any tool which can convert assembly back into c or c++, I don't think it is possible.
-
June 15th, 2004, 03:18 PM
You can use the Dependancy Checker to view the imports and exports, and see what other dll's it is dependant on. This tool (depends.exe) is widely available from Microsoft, just search for it.
...
-
June 15th, 2004, 02:32 PM
If the elements are sorted in descending order, the first array element will contain the max, so just return it:
int arrange()
{
int Max=10;
for(pass=1;pass<=Max-1;pass++)
...
-
There's a PE viewer posted on this very site:
http://www.codeguru.com/Cpp/misc/misc/article.php/c315/
"ha, i'm just doing it, and i understand what you mean~ thank you for your wish"
BTW -...
-
Check out the NetServerGetInfo() function, there should be flags in there that will give you the info you need.
From MSDN:
#ifndef UNICODE
#define UNICODE
#endif
-
"The application failed to initialize properly (0xc0000005)."
This means the program is crashing with an access violation sometime during the run-up of the exe, before the exe's code actually...
-
If you enable function-level linking, any functions that aren't used will not be included in the final exe, so you don't have to worry about a bloated exe.
You can generate a map file by setting...
-
There are many places online you can find MIBs such as
http://www.oidview.com/mibs/detail.html
and
http://www.mibdepot.com
-
Only way I see is to aggregate the third party object and expose the functions of the third party object via functions in your object.
Then you can dynamically load the third party dll and use...
-
If you want to speed up multiplications, one way is to use the specialized instructions (SSE) for doing parallel multiplies.
Check out this thread, which has some good pointers on SSE.
...
-
This is what I thought. In the case of the OP, it seems that he is building both the exe and the dll, so I would have assumed things would be in alignment. Bad assumption I guess.
This would...
-
Can someone explain why this is so?
I understand that it is good practice, and all, but I don't understand why it doesn't work.
-
The IsAppRunning() function that vrishchik007 wrote contains no MFC code, so you could just incorporate it directly; just define it as a regular function rather than a member of a class, or move it...
-
I know the OP's original code didn't work because he didn't specify a character of zero, but rather a NULL.
I just thought I would point out that there is a form of the constructor that will work...
-
PostQuitMessage() posts a WM_QUIT message to the thread, which causes GetMessage() to return with a zero.
In an MFC app, this causes the event loop in CWinApp::Run() (actually the guts are in...
-
Use WM_COPYDATA and the COPYDATASTRUCT structure to do this.
Here's sample code form MSDN:
// ************ Globals ************
//
#define MYDISPLAY 1
typedef struct tagMYREC
-
The prototype for qsort is
void qsort(
void *base,
size_t num,
size_t width,
int (__cdecl *compare )(const void *, const void *)
);
-
What you are talking about is called a "shell namespace extension".
It mostly involves implementing the IShellFolder interface for whatever you want to show.
If you go to msdn.microsoft.com and...
-
April 30th, 2004, 01:33 PM
If the "dictionary" is just a list of words, the words themselves are not copyright-protected.
The application that the words are in is copyrighted (copywritten?)
-
April 30th, 2004, 12:07 PM
Should be OFN_FILEMUSTEXIST , szFilters
-
April 30th, 2004, 10:09 AM
It's easier than you think if you are using MFC:
CFileDialog fileDlg(TRUE, L"txt", L"foo.txt");
// Display the file dialog. When user clicks OK, fileDlg.DoModal()
// returns IDOK.
...
-
April 30th, 2004, 06:35 AM
You could also use SetDlgCtrlID() and swap the control id's. Combine this with swapping the button text, it might be easier that moving everything around. Plus, this method should preserve the tab...
-
April 29th, 2004, 10:38 AM
Hehe, I agree with you, but my company's coding standards specify this bracket style, so I've gotten used to it.
-
April 29th, 2004, 10:03 AM
This is incorrect. Since the return type of the function is CString, the compiler is trying to convert buf to a CString. If it succeeds, it copies the buffer.
Apparently the 5.0 version of CString...
|
Click Here to Expand Forum to Full Width
|