Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ to Visual Basic

Status
Not open for further replies.

anders75

Programmer
Nov 13, 2002
8
SE
Hi list,

I would like to write VB code that works as the following C++ code:

...
...
FILE* f;
int BytesRead, i;
unsigned char Buffer[BufferSize];
...
...
do
{
BytesRead = 0;
BytesRead = fread(Buffer, 1, sizeof(Buffer), f);
if (! SubjectSearchProcessData(Buffer, BytesRead))
{
cout<<&quot;Subject Search is not started&quot;<<NL;
cout<<&quot;Press <Enter> to exit&quot;<<flush; getchar();
exit(0);
}
} while (BytesRead != 0);
...
...

Could anyone help please me out with this?

Thanks,
Anders
 
if you don't know VB (like me) then why not store your code in a dll which can be called from VB - is this possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top