Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Combo Box problem Pin
Hamid_RT17-Aug-06 3:48
Hamid_RT17-Aug-06 3:48 
GeneralRe: Combo Box problem Pin
u6ik17-Aug-06 3:57
u6ik17-Aug-06 3:57 
AnswerRe: Combo Box problem Pin
David Crow17-Aug-06 4:29
David Crow17-Aug-06 4:29 
AnswerRe: Combo Box problem Pin
u6ik17-Aug-06 4:52
u6ik17-Aug-06 4:52 
QuestionRetreiving Hex data from edit box Pin
rajeev8217-Aug-06 2:27
rajeev8217-Aug-06 2:27 
AnswerRe: Retreiving Hex data from edit box Pin
Cedric Moonen17-Aug-06 2:33
Cedric Moonen17-Aug-06 2:33 
GeneralRe: Retreiving Hex data from edit box Pin
rajeev8217-Aug-06 2:42
rajeev8217-Aug-06 2:42 
QuestionLinking Error / outportb [modified] Pin
cahit2317-Aug-06 2:27
cahit2317-Aug-06 2:27 
Hello everyone,

Thank you for your suggestions in my previous message.It's working.As next step, i want to send my uint8 values here to serial port.For that i added two lines into my code (bold) but i receive this error,

[Linker Error] Unresolved external '_outportb' referenced from H:\INTERFACE\INTERFACE.OBJ

(Interface is the name of my file in which i saved my code and files)

I didnt get the cause of problem,what's wrong?. If anyone has an idea, would be pleased!


#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h> // system()

int transmit (double x);
int i;
system();
outportb(int port, unsigned int);

int transmit (double x)
{ union ifas
{
double d;
unsigned char u8value[8];
};

union ifas member;
member.d = x;
printf("\nmember.d=%d\n",member.d);
for ( i=0 ; i<8 ; i++)
{
printf("\nmember.u8value[%d]=%f\n",i,member.u8value[i]);
outportb(port,member.u8value[i]);
}
return 0;
}

int main(int argc, char* argv[]) //Console
{
double var;
scanf("%lf",&var);
transmit(var);
system("pause");
return 0;
}


Regards,

Cahit






-- modified at 11:37 Thursday 17th August, 2006
AnswerRe: Problems in getting double as uint8 [modified] Pin
Steen Krogsgaard17-Aug-06 2:33
Steen Krogsgaard17-Aug-06 2:33 
AnswerRe: Problems in getting double as uint8 Pin
kakan17-Aug-06 2:55
professionalkakan17-Aug-06 2:55 
QuestionA raw toolbar for Dialog and Property page with plenty nice styles Pin
includeh1017-Aug-06 2:15
includeh1017-Aug-06 2:15 
QuestionFind the line no. on which the cursor is present? Pin
SanjaySMK17-Aug-06 1:36
SanjaySMK17-Aug-06 1:36 
AnswerRe: Find the line no. on which the cursor is present? [modified] Pin
jhwurmbach17-Aug-06 1:53
jhwurmbach17-Aug-06 1:53 
GeneralRe: Find the line no. on which the cursor is present? Pin
SanjaySMK17-Aug-06 21:04
SanjaySMK17-Aug-06 21:04 
QuestionHow to change font in edit control Pin
Max++17-Aug-06 1:33
Max++17-Aug-06 1:33 
AnswerRe: How to change font in edit control Pin
Chris Losinger17-Aug-06 1:46
professionalChris Losinger17-Aug-06 1:46 
AnswerRe: How to change font in edit control Pin
ThatsAlok17-Aug-06 2:10
ThatsAlok17-Aug-06 2:10 
AnswerRe: How to change font in edit control Pin
Hamid_RT17-Aug-06 2:46
Hamid_RT17-Aug-06 2:46 
QuestionC++ syntax: is the delete harmful? Pin
includeh1017-Aug-06 1:31
includeh1017-Aug-06 1:31 
AnswerRe: C++ syntax: is the delete harmful? Pin
Cedric Moonen17-Aug-06 1:40
Cedric Moonen17-Aug-06 1:40 
GeneralRe: C++ syntax: is the delete harmful? Pin
includeh1017-Aug-06 1:59
includeh1017-Aug-06 1:59 
AnswerRe: C++ syntax: is the delete harmful? Pin
ThatsAlok17-Aug-06 2:08
ThatsAlok17-Aug-06 2:08 
QuestionDatabase question ! Pin
Bravoone_200617-Aug-06 1:28
Bravoone_200617-Aug-06 1:28 
AnswerRe: Database question ! Pin
David Crow17-Aug-06 4:34
David Crow17-Aug-06 4:34 
Questionembed mysql installer in c++ appliction Pin
shinuq17-Aug-06 1:17
shinuq17-Aug-06 1:17 

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.