|
Thank you very much Yaron!! your solution is working fine. I wish, I could got the exact problem of my code too.
Regards
|
|
|
|
|
Hi
I am making an application where I need DDK and I started with a dialog based application in which only include ntddk.h file
Here I am having a problrm, when I include NTDDK.H then it gives error as folloews:
*******************************************************************************
*******************************************************************************
--------------------Configuration: Native - Win32 Debug--------------------
Compiling...
NATIVE.C
c:\program files\ntddk\inc\ddk\ntddk.h(7914) : error C2146: syntax error : missing ';' before identifier 'InterruptTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7914) : error C2061: syntax error : identifier 'InterruptTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7928) : error C2061: syntax error : identifier 'SystemTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7928) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(7935) : error C2061: syntax error : identifier 'TimeZoneBias'
c:\program files\ntddk\inc\ddk\ntddk.h(7935) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(8048) : error C2059: syntax error : '}'
c:\program files\ntddk\inc\ddk\ntddk.h(9101) : error C2061: syntax error : identifier 'PCONTEXT'
c:\program files\ntddk\inc\ddk\ntddk.h(9102) : error C2059: syntax error : '}'
c:\program files\ntddk\inc\ddk\ntddk.h(10051) : error C2061: syntax error : identifier 'KeTickCount'
c:\program files\ntddk\inc\ddk\ntddk.h(10051) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(10075) : error C2040: 'KdDebuggerEnabled' : 'unsigned char *' differs in levels of indirection from 'unsigned char '
c:\program files\ntddk\inc\ddk\ntddk.h(10342) : fatal error C1189: #error : "Target architecture not defined"
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\NATIVE.SBR': No such file or directory
Error executing bscmake.exe.
Native.exe - 14 error(s), 0 warning(s)
****************************************************************************
****************************************************************************
So please tell me that how to remove these problems
using these order in Tools->option->Directories:
INCLUDE FILES:
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\PROGRAM FILES\NTDDK\INC
C:\PROGRAM FILES\NTDDK\INC\DDK
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
LIBRARY FILES:
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\NTDDK\LIBFRE\I386
C:\PROGRAM FILES\NTDDK\LIBCHK\I386
C:\PROGRAM FILES\NTDDK\LIB\I386\FREE
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
Please help me.
Thanks
|
|
|
|
|
It looks as though you are missing some .h file. I've not dealt with device drivers so I can't offer any suggestions as to which one. Perhaps this search will help.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
The last error highlights the problem. You need to specify which architecture you are compiling for - which processor you are targetting for the driver. The other errors are because you haven't specified the architecture. Have a look are the lines surrounding the #error directive to see what your options are.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi Ryan
Infact I didnot program for DDK yet before, So Please tell me that how to specify which architecture I am compling ,
Please note that I am making a console based application using VC++ 6.0.
Please guide me.
Thanks
|
|
|
|
|
Have a look at the line that's causing the #error (line 10342 of ntddk.h) and see what is causing the #error . I haven't programmed for the DDK in a long time, so I can't remember how to set the architecture. I'm sure Google or MSDN search will help.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I want to display a Static Text in which its length is larger than 256 character.
How must I do ???
Lgx
|
|
|
|
|
What is happening with text longer than 256 characters?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Surivevoli wrote: I want to display a Static Text in which its length is larger than 256 character.How must I do ???
Increase the size of Static Text Control
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
"Increase the size of Static Text Control "
Yes I did it, and i saw that Text when i design,
But when i compile my program, the compiler display a warning :
"title string too long; truncated at 256"
and then i runed my program,:
only 256 first character is displayed.
Why ???
|
|
|
|
|
i think that 256 character limit is due to the resource editor, not to the abilities of the static control itself.
try setting the text with m_myStaticControl.SetWindowText("...");
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
you can change font from static control
|
|
|
|
|
you wrote"you can change font from static control"
how to do that ?
could you tell me step by step ?
|
|
|
|
|
you can declare one font with createfont
and then assign this font to control
in this parameter from createfont you can set size from font
|
|
|
|
|
I have developed an application in C++, and it's time to deploy it. I am using Visual Studio 2003 setup project to deploy it. It's easy to create a simple setup, but customizing the setup is a nightmare, for example, to add a page that displays a log that is generated by an external application that is run during the installation.
During uninstallation, it says that I should close MSN messenger, Windows Messenger and Notepad before uninstalling.
Remove Previous Version also does not work consistently, sometimes, it removes the previous version automatically, at other times, it just gives a messagebox telling that I should remove the earlier version from the control panel.
Am I missing something or are these bugs that you have encountered earlier?
Also, the documentation for setup projects seems to be limited. Could you point me to some good articles on creating setup projects with a fair level of customization?
|
|
|
|
|
inno setup will release your headache.
Do you know Java? need a better Java IDE? then use SyncJEdit.
A graphic tool (Image-Copier) offers you over 33,000 programming icons!
The world unique Software Label Maker (Paper-Label-maker) is waiting for us ...
optimizing your MS-Html-Help-contents automatically by the powerful tool (Hyper-Care).
All are free if you simply click this LINK.
|
|
|
|
|
I have been using Inno setup for other projects and am happy with it. But for this case, I need to include merge modules into the setup, which, I do not think, is possible with Inno setup. That is why I resorted to the Visual Studio setup in the first place.
|
|
|
|
|
Hello together,
I have a problem with a Memo-Field or a Binary-Field in Access.
In the Release-Version all is OK, but in the Debug-Version (VisualStudio 5) the comparison of the two pointers (look at the code) failed.
<br />
void AFXAPI AfxLoadField(CRecordset& rs, UINT nField,<br />
void* pvField, long* plLength)<br />
{<br />
CFieldInfo* pInfo = &rs.m_rgFieldInfos[nField - 1];<br />
<br />
rs.SetFieldStatus(nField - 1, pInfo->m_bStatus);<br />
<br />
if (!rs.IsFieldStatusNull(nField - 1))<br />
{<br />
if (pInfo->m_nDataType == AFX_RFX_BOOL ||<br />
pInfo->m_nDataType == AFX_RFX_BYTE ||<br />
pInfo->m_nDataType == AFX_RFX_INT ||<br />
pInfo->m_nDataType == AFX_RFX_LONG ||<br />
pInfo->m_nDataType == AFX_RFX_SINGLE)<br />
{<br />
AfxCopyValueByRef(&pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);<br />
}<br />
else<br />
{<br />
AfxCopyValueByRef(pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);<br />
}<br />
}<br />
else<br />
*plLength = SQL_NULL_DATA;<br />
<br />
#ifdef _DEBUG<br />
if (pInfo->m_nDataType == AFX_RFX_BINARY)<br />
{<br />
pvField = ((CByteArray*)pvField)->GetData();<br />
}<br />
<br />
if (pInfo->m_pvBindAddress != pvField)
{<br />
TRACE1("Error: field address (column %u) has changed!\n",<br />
nField);<br />
ASSERT(FALSE);
}<br />
#endif // _DEBUG<br />
}
This is the Problem:
AfxCopyValueByRef(&pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);
My Code:
RFX_Binary(pFX, _T("[Polygon]"), m_Polygon, 65536);
m_Polygon is the CByteArray.
By AfxCopyValueByRef the pointer pvField sometimes change the adress.
pvField is a pointer on the CByteArray.
Can someone help me ???
tino
|
|
|
|
|
Nobody knows anything, or can give me a tip.
|
|
|
|
|
I want to use library DirectShow to interact with WebCam.Please help me
aloha
|
|
|
|
|
It is a very complicated matter, which one need to read and learn more about.
My advise to you is to start reading the concept on how Direct show works (graph, filters, pins)
and then try to implement interaction with webcam.
there is an easier way to interact with webcam, you can use Video For Windows (VFW for short).
One good class that wraps VFW and do all the work for you is VFWImageProcessor. search code project for it...
good luck hope this helps
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I'm doing project this subject, advise: build a program on visual c++, when I run this progam, will perfom all pictures which Webcam capture
I want to have source code of this progam, but not find
aloha
|
|
|
|
|
There's a sample called AMCap in the Windows SDK which does exactly that. Read through it to see how it works.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I'm doing project this subject, request: build a program on visual c++, when I run this progam, will perfom all pictures which Webcam capture
I want to have source code of this progam, but not find
aloha
aloha
|
|
|
|
|
Hi,
I am using DeviceIoControl() to create partition using IOCTL_DISK_SET_DRIVE_LAYOUT parameter. The code is working fine to create primary partition. But if i want to create logical drive in extended partition i don't know that whether i have to write two entry or single entry in the DRIVE_LAYOUT_INFORMATION structure(one for extended partition info and the other for the logical drive to be created) and how to find out in which entry of DRIVE_LAYOUT_INFORMATION structure i have to write this information.
Thanks.
|
|
|
|