Click here to Skip to main content
15,891,136 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Need urgent C++ help Pin
Jitendra gangwar26-Apr-04 1:42
Jitendra gangwar26-Apr-04 1:42 
GeneralCombo box problem Pin
Martin McCready15-Apr-04 4:24
Martin McCready15-Apr-04 4:24 
GeneralRe: Combo box problem Pin
User 91483318-Apr-04 13:09
User 91483318-Apr-04 13:09 
Questionhow to fix this error?? Pin
don7cry14-Apr-04 16:03
don7cry14-Apr-04 16:03 
GeneralFrom managed Object* to unmanaged IUnknown Pin
Member 78199113-Apr-04 13:26
Member 78199113-Apr-04 13:26 
GeneralRe: From managed Object* to unmanaged IUnknown Pin
ian mariano25-Apr-04 14:13
ian mariano25-Apr-04 14:13 
GeneralCRC32 Pin
Member 10035669-Apr-04 20:59
Member 10035669-Apr-04 20:59 
GeneralRe: CRC32 Pin
Mikko Puonti9-Apr-04 23:15
Mikko Puonti9-Apr-04 23:15 
This code doesn't seem to be Managed C++ - just normal Visual C++ code (so proper forum would be Visual C++ forum). But anyway...

Here is some quick notes:
1) #include "CRC2.h" --> #include "CRC32.h" ?
2) Also some other includes seem to be missing. I guess that they didn't copy to your message.
PBM_SETPOS, PBM_SETRANGE32 --> CommCtrl.h
PERCENT --> Unkonwn include
_O_RDONLY, _O_SEQUENTIAL, _O_BINARY, _SH_DENYWR --> File constants from fcntl.h
_SH_DENYWR --> Sharing constant from share.h
_tsopen --> Routine mapping from TCHAR.H
_sopen --> open file for sharing from io.h

3) LPCRCStruct --> LPCRCSTRUCT (C++ is case sensitive)
4) MaxPath --> Normally MAX_PATH
5) close(theFile) --> close(theFile);
6) _lseekie64 --> _lseeki64
7) ::PostMessage(Progress, PBM_SETPOS, PERCENT, 0); --> ::PostMessage(Progress, PBM_SETPOS, percent, 0);
8) int percent = (int) (((long double)done / (long double)length) * 100); --> You need to calculate length from somewhere.
9) pCRCSt->hWND --> pCRCSt->hWnd
10) if (Handle --> if (Handle)
11) void Calculate (const LPBYTE buffer, UINT Size, ULONG &crc); --> Where is method definition?

My include list in stdafx.h:
#include <io.h>
#include <tchar.h>
#include <windows.h>
#include <CommCtrl.h>
#include <fcntl.h>
#include <share.h>
#include <TCHAR.H>

Some includes might be unnecessary. These changes should compile files - but I don't have any idea is that doing what it is supposed to do.

There is also some ready CRC32 function implementations here in code project. For example:
CRC32: Generating a checksum for a file[^]. If you want to develope managed code, you should check out Cyclic Redundancy Check (CRC32) HashAlgorithm[^]. There is also more implementations and examples - just try search.
GeneralRe: CRC32 Pin
Anonymous10-Apr-04 4:50
Anonymous10-Apr-04 4:50 
GeneralRe: CRC32 Pin
Mikko Puonti12-Apr-04 20:24
Mikko Puonti12-Apr-04 20:24 
GeneralRe: CRC32 Pin
PJ Arends18-Apr-04 14:59
professionalPJ Arends18-Apr-04 14:59 
GeneralManaged DirectX problem Pin
reznod9-Apr-04 8:59
reznod9-Apr-04 8:59 
GeneralRe: Managed DirectX problem Pin
Mikko Puonti9-Apr-04 23:18
Mikko Puonti9-Apr-04 23:18 
GeneralRe: Managed DirectX problem Pin
reznod10-Apr-04 7:04
reznod10-Apr-04 7:04 
GeneralDllImport problem Pin
reznod8-Apr-04 7:11
reznod8-Apr-04 7:11 
GeneralRe: DllImport problem Pin
Anthony_Yio13-Apr-04 0:42
Anthony_Yio13-Apr-04 0:42 
GeneralRichEditView error when closing VC.Net app Pin
BlackDice8-Apr-04 6:47
BlackDice8-Apr-04 6:47 
GeneralStrings Pin
Billly1237-Apr-04 23:41
sussBillly1237-Apr-04 23:41 
GeneralRe: Strings Pin
Cyric7419-Apr-04 13:55
Cyric7419-Apr-04 13:55 
GeneralCasting Problem for a beginner Pin
Hosam CFJ6-Apr-04 11:21
Hosam CFJ6-Apr-04 11:21 
GeneralRe: Casting Problem for a beginner Pin
Christian Graus6-Apr-04 11:41
protectorChristian Graus6-Apr-04 11:41 
GeneralRe: Casting Problem for a beginner Pin
Hosam CFJ6-Apr-04 12:18
Hosam CFJ6-Apr-04 12:18 
GeneralRe: Casting Problem for a beginner Pin
Christian Graus6-Apr-04 12:20
protectorChristian Graus6-Apr-04 12:20 
GeneralRe: Casting Problem for a beginner Pin
Nemanja Trifunovic6-Apr-04 13:14
Nemanja Trifunovic6-Apr-04 13:14 
GeneralRe: Casting Problem for a beginner Pin
Nemanja Trifunovic6-Apr-04 13:16
Nemanja Trifunovic6-Apr-04 13:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.