Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Chat to hex Pin
Mike Nordell5-Feb-03 21:04
Mike Nordell5-Feb-03 21:04 
GeneralRe: Chat to hex Pin
Abbas_Riazi5-Feb-03 22:03
professionalAbbas_Riazi5-Feb-03 22:03 
QuestionDo you access a SQL server the same way you access a ACCESS DATABASE?? Pin
IrishSonic5-Feb-03 11:34
IrishSonic5-Feb-03 11:34 
AnswerRe: Do you access a SQL server the same way you access a ACCESS DATABASE?? Pin
nde_plume5-Feb-03 14:07
nde_plume5-Feb-03 14:07 
Generalneed help with odbc with paragraph of text.. Pin
trustno15-Feb-03 11:04
trustno15-Feb-03 11:04 
GeneralRe: need help with odbc with paragraph of text.. Pin
KarstenK6-Feb-03 0:11
mveKarstenK6-Feb-03 0:11 
General"Catastrophic Failure" in Visual Studio.NET Pin
Jonathan Gilligan5-Feb-03 10:14
Jonathan Gilligan5-Feb-03 10:14 
GeneralHelp with structure and createThread function call Pin
Pecan2045-Feb-03 9:52
Pecan2045-Feb-03 9:52 
I am not real clear on using structure statements and external function calls. I am getting the following errors when I compile the file below. Can someone hlep? Thanks.

cinterface3.cpp(22) : error C2228: left of '.start' must have class/struct/union type
cinterface3.cpp(24) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'void (long *)' to 'unsigned long (__stdcall *)(void *)'
cinterface3.cpp(30) : error C2228: left of '.time' must have class/struct/union type

#include <stdio.h>
#include <string.h>
#include <windows.h>

struct io {
char time[10];
int start;
};

struct io cio;

extern "C" __declspec(dllimport) void _stdcall FTREND3
( long * );

void main (void)
{
DWORD tid, cio;

HANDLE hThread;

cio.start = 1;

hThread = CreateThread(NULL, 0, FTREND3, &cio, 0, &tid);
CloseHandle(hThread);

printf("In c after fortran thread started\n\n");
printf("string = %s\n",cio.time);
}
GeneralRe: Help with structure and createThread function call Pin
Joaquín M López Muñoz5-Feb-03 10:35
Joaquín M López Muñoz5-Feb-03 10:35 
GeneralRe: Help with structure and createThread function call Pin
Pecan2045-Feb-03 14:24
Pecan2045-Feb-03 14:24 
GeneralLinking additional obj's Pin
JohnEddy5-Feb-03 9:12
JohnEddy5-Feb-03 9:12 
GeneralRe: Linking additional obj's Pin
Joaquín M López Muñoz5-Feb-03 9:19
Joaquín M López Muñoz5-Feb-03 9:19 
GeneralRe: Linking additional obj's Pin
AlexO5-Feb-03 9:20
AlexO5-Feb-03 9:20 
GeneralRe: Linking additional obj's Pin
JohnEddy5-Feb-03 9:40
JohnEddy5-Feb-03 9:40 
Generalccalendar or cmonthcalendar Pin
youssef5-Feb-03 8:48
youssef5-Feb-03 8:48 
GeneralA simple question about CListCtrl::InsertItem Pin
lucy5-Feb-03 8:21
lucy5-Feb-03 8:21 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
lucy5-Feb-03 8:50
lucy5-Feb-03 8:50 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
xxhimanshu5-Feb-03 19:07
xxhimanshu5-Feb-03 19:07 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
lucy6-Feb-03 2:32
lucy6-Feb-03 2:32 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
Jean-Marc Molina3-Oct-03 0:26
Jean-Marc Molina3-Oct-03 0:26 
QuestionHow to transfer data in different views? Pin
hamchoy5-Feb-03 8:20
hamchoy5-Feb-03 8:20 
AnswerRe: How to transfer data in different views? Pin
lucy5-Feb-03 8:22
lucy5-Feb-03 8:22 
GeneralRe: How to transfer data in different views? Pin
hamchoy5-Feb-03 8:44
hamchoy5-Feb-03 8:44 
AnswerRe: How to transfer data in different views? Pin
Joaquín M López Muñoz5-Feb-03 8:40
Joaquín M López Muñoz5-Feb-03 8:40 
GeneralRemote Shell HTML interface Pin
TSrinivasR5-Feb-03 7:51
TSrinivasR5-Feb-03 7:51 

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.