|
When ever i compile my program this error is there how to come out of this....how to slove this error????
//BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
After deleting debug folder still not working...error is there
-- modified at 23:33 Thursday 20th July, 2006
|
|
|
|
|
Delete the debug folder and try rebuilding...
nave
|
|
|
|
|
|
ok..Another way..Take project->Setting->C++ tab
in the category combo take "Precompiled Headers"
Now check the Radio button "Not using precompiled headers".
Then rebuild the preoject.
nave
|
|
|
|
|
I dont know what went wrong....now i got three error......After that
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
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
|
|
|
|
|
hi
Try by adding #include <stdafx.h>
Hope this will help
|
|
|
|
|
|
Are you using VS2003 or vs2005??
#include <stdafx.h> should be in the first line of all include statements.
Just check this.
|
|
|
|
|
|
|
Try this...
Go to project settings-->Link
Change the debug directory name to something else like Debug1.
|
|
|
|
|
for (index=0; SetupDiEnumDeviceInterfaces(deviceInfo, 0, (LPGUID)&GUID_CLASS_USB, index, &DeviceInterfaceData); index++) {
memset(tempstr, 0, 1024);
deviceDetailData = (PSP_DEVICE_INTERFACE_DETAIL_DATA)tempstr;
deviceDetailData->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA);
SetupDiGetDeviceInterfaceDetail(deviceInfo, &DeviceInterfaceData, deviceDetailData, 1024, &requiredLength, NULL);
hUSBHandle = CreateFile(deviceDetailData->DevicePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
CloseHandle(hUSBHandle);
}
I would like enumerate all usb devices and get their device address.
How could I do?
Thanks and regards
|
|
|
|
|
Hi guys,
I posted before but looks like that post is long gone. I also didnt describe the problem very well so here i will go at another attempt.
I am using DLL Injection to do a system-wide WriteProcessMemory Hook using Microsoft Detours. My hook works, because I get the desired change in the function but there is one problem that I do not understand why it is occuring. Everytime I initiate the hook, explorer.exe seems to crash. That is the only program that crashes and I do not know why. Would anyone know why it would crash?
I want to try a different method. Specifically on hooking the export. Would anyone know how I would do a hook on the WriteProcessMemory Export in kernel32?
Any help to my two questions would be appreciated. I'll post some code if you need it.
Thanks,
Robbie
|
|
|
|
|
hey all,
I do a checksum logic on both the serial device and the Pc end to see if the correct packet is received.
I do :
<br />
for (i = 0 ; i < (nMaxLenPkt2Tx - 1); i++)<br />
{ cChkSum_2pc ^= txbuffer[i];}<br />
<br />
txbuffer[i] = cChkSum_2pc;
and then send the packet from the serial device to PC.
and on Pc's end, I do this after receiving the packet before copying it to a local buffer.
char cChkSum = 0;<br />
<code>for (i = 0 ; i < (PKTINFO_LEN_MPU_2PC - 1); i++)<br />
<br />
cChkSum ^= m_cBufPktInfo_mpu_2pc[i];
and compare this checksum count with teh received checksu count in the packet to determine if it is a correct packet or not. ie.,
if (cChkSum != m_cBufPktInfo_mpu_2pc[PKTINFO_LEN_MPU_2PC - 1])<br />
{<br />
TRACE("Received a bad packet!\n");<br />
}<br />
But I get badpacket everytime . Waht could be wrong? the datatypes and the length of the packet sent and received are the same. I have checked that.
Any ideas/help?
Thanks in advance.
|
|
|
|
|
|
Ok so here is the situation,
I had an assignment due in my class(Don't Worry it is over now, however I had to turn it in incomplete) I want to finish it up for the learning experience my class is a 100 level class at my college and it is programming in C++.
Here is the link: Assignment BIGINT
Now I have finished some of it and commented most of it so hopefully it will be easy to understand where I am.
Class Definition:Class Definition
Class Inplementation:Implemenation
The main point of this assigment was operator overloading and I need to get +, -, *, / ++, --, +=, -=, ==, !, >, < overloaded.
Now I know that this is a large amount of work, however I was hoping we could work at this one step at a time and I would appreciate this an extreme amount. Thanks Alot Guys
-Duncan
|
|
|
|
|
ask for a specific question first, and only then, you'll get some help. if people feel you ask them to do the job for you, no one will come.
then, the first problem is ...?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Ok Well to be specific I have been working on it the last two days, I really need help with
* & / I am sure that if I get these I will have no problem with the rest of it.
ALSO I have updated the class and class implementation with what I finished last night. Added material includes:
Constructors all complete.
+=(Although it uses + operator)
-=(Also uses - operater)
==, !=, <, >
and negative -(unary -)
Check the Links Thanks Again Guys
|
|
|
|
|
I have all the function define now need to call function with parameter????
So i need to create an instance of an 'CArielAPI' object.????HOW????
-- modified at 22:01 Thursday 20th July, 2006
|
|
|
|
|
How long have you been writing code for ? This is a very confusing question, because the answer seems to be so simple. Assuming that CArielAPI is a class, you need to include the header it was defined in so it's visible where you want to create it, then you just plain declare it.
Perhaps you need to explain some more ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
priyanka s wrote: 'CArielAPI' object.????HOW????
CArielAPI ArielObj;
ArielObj.Call it funtion!
"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
Support CRY- Child Relief and You
|
|
|
|
|
Hi!
Reading the memory in other applications can be quite useful sometimes. It is especially useful for writing trainers.
Now, I have successfully located a couple of variables in my target application. Those variables are mostly strings allocated directly on the stack or through a call to malloc with a constant length. These constant allocations yields constant addresses for my strings. Thus, they can easily be read from my trainer-application using ReadProcessMemory.
However, when I use dynamic memory allocation the offsets between my variables can be of any size. I need to somehow calculate exactly where in the memory my variables will be located. Also, it would be good to know how many bytes one should read (the length of allocated strings etc).
How can I do that? Note that I'm only interested in _reading_ these values. I know there are ASM/Soft-Ice gurus in here! Could you please point me in the right direction =)
Any help is appreciated!
Thanks!
/Chris
|
|
|
|
|
|
using SetupDiXxx functions:
I have got a DevicePath
\\?\usbstor#disk&ven_fujitsu&prod_memorybird&rev_1.14#0739035033a1&0#{53f563
07-b6bf-11d0-94f2-00a0c91efb8b}.
then use function GetLogicalDrives get all removable drives : A:\, I:\.
Then I feed all these removable drive mountpoint to function
GetVolumeNameForVolumeMountPoint
but the volumeName returned from the function:
\\?\Volume{84ec96be-1682-11db-8e5c-001111c4d88f}
doesn't match with the device path.
So how can I determine which removable drive in the list is the one for the USB flash drive??? I need exact drive letter for the USB flash drive plugged into the PC in order to access files stored in it.
|
|
|
|
|
Greetings,
Is it acceptable or good programming practice to have vectors nested inside each other within one big vector? For example, say I wanted to record inquiries for a business. Say there were only six type of inquiries and, of course, they can occur in one of 12 months, and each month has 30 or so days.
Is it ok to put an object call m_inqInquiry into a vector m_vDays into a vector m_vMonths, then put m_vMonths into a vector call m_vInquiries.
This proposed system would work as follows when a new inquire is created: The m_vInquiries would find the appropriate month vector based on the current month, then in the appropriate m_vMonths vector it would find the appropriate m_vDays vector, then in the particular day m_vDays vector it would add an m_inqInquiry object.
Is that consider bad practice? Is it ok to add more nested levels?
Thanks in advance,
BP
|
|
|
|