|
but where is the definition of the funtion GetStatus(..)?
nave
|
|
|
|
|
FT_GetStatus is the FTD2XX_API library funciton.
This is given in the header file ftd2xx.h which is included in the USBtestdlg.h file.
|
|
|
|
|
hoo...So have include the lib file for that api in the project?
nave
|
|
|
|
|
have included the ftd2xx.h file as external dependency in the project. so the drivers installed should take care of linking the functions and reading and writing from the device(USB).
I can use their FT_Read and FT_Write functions without any errors.
Infact I have done the same way for GetStatus too.
|
|
|
|
|
u have to include the lib file for the same.
take menu project->Settings
in the link tab, there will be an edit box called object/library modules. Give the name of the lib file there and rebuild the project.
nave
|
|
|
|
|
FT_Read and FT_Write and FT_GetStatus are all in the same.
I dont know what I should include now.
|
|
|
|
|
thathvamsi wrote: are all in the same.
same what?dll?
Actually whats "FTD2XX_API library funciton".Can u give me any link so that i can tell u, to what lib u must link.
nave
|
|
|
|
|
I meant the dll.
Its the FTD2xx.dll that links the application software with the USB device.
|
|
|
|
|
|
Hey,
thanks, I did.
works now.
Thanks for ur help.
|
|
|
|
|
U might have declared a Funtion like "CUSBtestDlg::GetStatus(.)" in the header file ( say USBtestDlg.h ) but the body or funtion definiton is not written. More over u have called that funtion from some else.
Solutions.
Either remove the funtion declaration from the header file or Add the function definition in the CPP file
nave
|
|
|
|
|
Hey,
I have posted my code / response in my previous message.
Any help/ideas?
|
|
|
|
|
i am trying to make an number 1.111111
store into a float as 1.11
mean something like
int float lala = 1.111111;<==how can isave as 2 decimal place
|
|
|
|
|
To clip off the rest of the ones, you can
double dfNum=1.111111;
dfNum*=100;
dfNum=(int)dfNum;
dfNum/=100;
TRACE("%f\n",dfNum);
|
|
|
|
|
Is there anybody who can help me??????From past two days i am trying my best..but still...
Whenever I open a new project and try to compile it i got the error....
Any of you had this problem ? If so how do you solved it ?
c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : error
C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : fatal
error C1004: unexpected end of file found
|
|
|
|
|
priyanka s wrote: c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : fatal
error C1004: unexpected end of file found
The above error is coming because u must compile the stdafx.cpp before compiling any other files first time.It good u build (not compile )the entire project first.
nave
|
|
|
|
|
I ALREADY BUILD THE WHOLE PROJECT BEFORE COMPILE....
|
|
|
|
|
Whats your program, are you getting this error in all your programs
|
|
|
|
|
YES I AM GETTING THIS ERROR IN ALL MY PROGRAM.....JUST OPENING THE NEW PROJECT AND ERROR IS THERE...THE PROJECT WHICH R WORKING BEFORE NOW THEY ALSO HAVE ERROR...
|
|
|
|
|
Just Uninstall the Visual Studio and reinstall it again.We have given you all the known solutions.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
priyanka s wrote: c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : error
C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
First, what does your stdafx.h file look like?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I was wondering if someone could tell me how to create a 2-d CStringArray.
Roj
|
|
|
|
|
2d CString: CString ar[10][10];
or
2d CStringArray: CStringArray ar[10][10];
|
|
|
|
|
Okay thanks. I could have sworn that I tried that, but it seems to work now.
Roj
|
|
|
|
|
I have an MFC DLL ( DLL1) that talks to another DLL (DLL2) . The problem is that during an API call within DLL2 , DLL2 does a SendMessage to a window owned by DLL1 but I never seem to get notified of it .
Here is how my code looks
CMyWnd myWnd ;
Dll1_MainAPI()
{
AfxBeginThread(Dll1_Thread1, ..);
AfxBeginThread(Dll1_Thread2, ..);
}
Dll1_Thread1()
{
myWnd.Create(...);
while(GetMessage(msg, myWnd.m_hWnd, ...)!=-1)
{
if(msg.message == REGISTERED_MSG_FROM_DLL1)
{
AfxMessageBox("Received the message from dll1");
continue ;
}
TranslateMsg(msg);
DispatchMsg(msg);
}
Dll1_Thread2()
{
DLL1_API_Initialize(myWnd.hwnd , .....);
DLL1_API_Invoke( ....);
}
The problem is that the afxmessagebox is never called , even though the message is sent ( i can see the message via SPY) .
Now this occurs when there are no handlers for the registered message within CMyWnd .
If i add a handler in the message map for CmyWnd , the handler is called automatically
My design is such that I need to trap the message within DLL_Thread1() . I am still trying to figure out why I do not receive the notification .
Any help is greatly appreciated .
Engineering is the effort !
-- modified at 18:23 Sunday 23rd July, 2006
|
|
|
|