Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: mask format for an IP address Pin
nlarson1114-Dec-06 4:12
nlarson1114-Dec-06 4:12 
GeneralRe: mask format for an IP address Pin
charchabil0314-Dec-06 5:14
charchabil0314-Dec-06 5:14 
GeneralRe: mask format for an IP address Pin
nlarson1114-Dec-06 5:49
nlarson1114-Dec-06 5:49 
GeneralRe: mask format for an IP address Pin
charchabil0315-Dec-06 6:13
charchabil0315-Dec-06 6:13 
AnswerRe: mask format for an IP address Pin
tbryce31116-Dec-06 14:37
tbryce31116-Dec-06 14:37 
QuestionFileget error Pin
Georgesl14-Dec-06 3:42
Georgesl14-Dec-06 3:42 
AnswerRe: Fileget error Pin
Dave Kreskowiak14-Dec-06 9:52
mveDave Kreskowiak14-Dec-06 9:52 
QuestionRe: Fileget error Pin
Georgesl14-Dec-06 21:50
Georgesl14-Dec-06 21:50 
Thank you for replying,
The matter is that i am trying to read a data file. The company who wrote the file sent me a sample of how to read their file but the problem is that the sample is in c++ and my app is in vb.net

the data file sounds like that:

?  
‰ L $100 CB 36772579 C $100 FB 49553858 B $100 FL 01935605 A $100 FB 63796061 A $100 FB 33316613 A $100 AB 665

The sample code is:

typedef struct tag_RawDataNoImage
{
// Default Data
char iTellerID[48];
char iTellerName[48];
char iWorkstationID[16];
char iCustomerName[48];
char iCustomerACNo[32];
char iCustomerAddr1[64];
char iCustomerAddr2[64];
char iCustomerIDNo[32];
// Counter Data
SYSTEMTIME iDateTime;
int iType; // 0:Dollar , 1:Euro
int iDenom[10];
int iUnit[10]; // Number of each denomination
int iTotalUnit; // Total Number of count
int iTotalAmount; // Amount of count
int iUVMG; // 0-None , 1-UV , 2-MG , 3-UV/MG
char iImgResult[MAX_ROW_COUNT][32];
} RawData;



int main(int argc, char* argv[])
{
unsigned int i;
CFile file;
DWORD iRawDataCount;
RawData data;
CString itemStr, dataStr;
int uIndex,fOfs;

if(argc < 2)
{
printf("please enter name of Raw file. ex: Day_08.log\n");
return 0;
}

if(!file.Open(argv[1], CFile::modeReadWrite ))
{
printf("File open error!!!\n");
return 0;
}

file.Read(&iRawDataCount, sizeof(DWORD));

file.Seek(sizeof(DWORD),CFile::begin);

for(i=0;i
Questionboundries of a (picture) map Pin
charchabil0314-Dec-06 3:32
charchabil0314-Dec-06 3:32 
AnswerRe: boundries of a (picture) map Pin
nlarson1114-Dec-06 3:51
nlarson1114-Dec-06 3:51 
GeneralRe: boundries of a (picture) map Pin
charchabil0314-Dec-06 4:01
charchabil0314-Dec-06 4:01 
GeneralRe: boundries of a (picture) map Pin
charchabil0314-Dec-06 9:53
charchabil0314-Dec-06 9:53 
GeneralRe: boundries of a (picture) map Pin
Dave Kreskowiak14-Dec-06 10:09
mveDave Kreskowiak14-Dec-06 10:09 
GeneralRe: boundries of a (picture) map Pin
charchabil0315-Dec-06 6:22
charchabil0315-Dec-06 6:22 
GeneralRe: boundries of a (picture) map Pin
Dave Kreskowiak15-Dec-06 10:35
mveDave Kreskowiak15-Dec-06 10:35 
QuestionCreating one more button in the title bar Pin
gsrs14-Dec-06 2:36
gsrs14-Dec-06 2:36 
AnswerRe: Creating one more button in the title bar Pin
Dave Kreskowiak14-Dec-06 9:45
mveDave Kreskowiak14-Dec-06 9:45 
QuestionPopup Message Pin
Dayekh13-Dec-06 23:31
Dayekh13-Dec-06 23:31 
AnswerRe: Popup Message Pin
Christian Graus14-Dec-06 0:01
protectorChristian Graus14-Dec-06 0:01 
GeneralRe: Popup Message Pin
Dayekh14-Dec-06 0:10
Dayekh14-Dec-06 0:10 
Questionsending emails in vb without using outlook or sqlserver Pin
psiva198413-Dec-06 21:44
psiva198413-Dec-06 21:44 
AnswerRe: sending emails in vb without using outlook or sqlserver Pin
Christian Graus14-Dec-06 0:20
protectorChristian Graus14-Dec-06 0:20 
AnswerRe: sending emails in vb without using outlook or sqlserver Pin
nlarson1114-Dec-06 3:31
nlarson1114-Dec-06 3:31 
GeneralRe: sending emails in vb without using outlook or sqlserver Pin
psiva198414-Dec-06 17:56
psiva198414-Dec-06 17:56 
QuestionLogon form using windows services Pin
sezhian_vertical13-Dec-06 21:15
sezhian_vertical13-Dec-06 21:15 

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.