|
Thanks. Moonen.
But I don't have any other debugger tools. Do you know what can I used to replace Dr. Watson?
|
|
|
|
|
I`m REMY wrote: But I don't have any other debugger tools.
What IDE are you using ? Don't you use visual studio ?
In most of the IDE, there is a debugger which comes along. Or are you using a simple text editor (like errr, notepad) and a command line compiler ?
If you are using any version of visual studio, simply press F5 to start the debugger. You can put breakpoints using F9 and watch the different variables state.
|
|
|
|
|
Please let me know how to create a button of desired shape .
I want to create a push button of elliptical shape.It should be transparent.
I created dialog based application and placed picture control and loaded bmp.on that bmp I want to place my button with elliptical shape with my color on button.
please let me lnow on this
Thanks in advance,
Ashok
|
|
|
|
|
Take a look here[^], you'll probably find something that fits your need.
|
|
|
|
|
|
|
|
Hai,
Iam getting this errors when i compile it.
error C2065: 'WSAAsyncGetHostByName' : undeclared identifier
error C2065: 'WSACancelAsyncRequest' : undeclared identifier
Note: I got this error previosly before some days and posted it here some them are replied to include winsock.h,winsock2.h.But it doesnt rectified,
iam working in another project in that iam getting the same error.Can anyone please suggest me how to rectify it.
Thanks in Advance
Harshadha
|
|
|
|
|
Whats your compiler and application type?
|
|
|
|
|
harshadha wrote: error C2065: 'WSAAsyncGetHostByName' : undeclared identifier
error C2065: 'WSACancelAsyncRequest' : undeclared identifier
You must include Winsock2.h in order to use these functions.
harshadha wrote: But it doesnt rectified,
Then you are doing something else wrong. What does your stdafx.h file look like?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello All,
We have developed complete Device Driver, by this Device Driver we are able to communicate with the FTDI Chipset , means we can read Device Descriptors, Endpoint Information, even we are able to write the data to USB Device, but during read operation we are not receiving the correct data.
For reading USB Data we have used following Functions of DDK
UsbBuildInterruptOrBulkTransferRequest(
urb,
sizeof (struct _URB_BULK_OR_INTERRUPT_TRANSFER),
PipeHandle,
&Extension->ReadData,
NULL,
ReadLength, //64,
USBD_TRANSFER_DIRECTION_IN | USBD_SHORT_TRANSFER_OK,
NULL);
IoSetCompletionRoutine(
Irp,
(PIO_COMPLETION_ROUTINE) ReadDataFun,
Extension,
TRUE,
TRUE,
TRUE);
Please if anybody can help out Can for any alternate way or if anything wrong in the above fucntions.
I have also tried with _CallUSBD Furnction but with that also I am getting same results.
also if anyboudy can tell me by using this function how URB are updated I mean whether we have to pass the Device Object to Update or what exactly we have to do.
Please Help
Thanks & Regards
Sameer Shirgaonkar
|
|
|
|
|
Hello everyone,
i wanted to know if there is any way to retrieve the default personal folders file path?
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
|
Try using SHGetFolderLocation, SHGetFolderPath, SHGetSpecialFolderLocation, SHGetSpecialFolderPath with CSIDL_PERSONAL .
Regards,
Paresh.
|
|
|
|
|
well, i am sorry that i was not clear in asking what exactly i wanted. actually i am working on something that is related to Microsoft Outlook. All the outlook items are stored in a file called 'outlook' with '.pst' extension. That file is stored in a folder called 'Outlook' whose path is as shown below:
C:\Documents and Settings\UserName\Local Settings\Application Data\Microsoft\Outlook
and i want to access that path programatically. i wanted to know if there is any function that does that for me.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
Try using CSIDL_APPDATA with SHGetFolderPath . Refer this[^] for more information. I hope this will surve your purpose.
Regards,
Paresh.
|
|
|
|
|
I can see that no CSIDL value takes me to the outlook folder. i would like to know if there are any. else i may have to do something on my own to construct the path. Anyways, thanks for all the help.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
vijay7173 wrote: I can see that no CSIDL value takes me to the outlook folder.
Of course not, because it's application-specific.
vijay7173 wrote: i would like to know if there are any. else i may have to do something on my own to construct the path.
Use CSIDL_APPDATA to get you down to C:\Documents and Settings\UserName\Local Settings\Application Data, and then hard-code the rest.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Of course not, because it's application-specific.
sorry sir, i assumed the default Outlook folder to be one of the special folders and hence expected a built-in function for retriving the path to that folder. Thanks for the info.
DavidCrow wrote: Use CSIDL_APPDATA to get you down to C:\Documents and Settings\UserName\Local Settings\Application Data
No. The CSIDL_APPDATA will take us to C:\Documents and Settings\UserName\Application Data. Instead, I need to use CSIDL_LOCAL_APPDATA which will take me down to C:\Documents and Settings\UserName\Local Settings\Application Data.
DavidCrow wrote: and then hard-code the rest
yes, thats exactly what i have done now
And also, i used SHGetSpecialFolderPath() instead of SHGetFolderPath() . i dont know why, but SHGetFolderPath() did not work for me in a dialog based application though it worked fine in Console based application.
-- modified at 2:23 Wednesday 18th April, 2007
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
vijay7173 wrote: And also, i used SHGetSpecialFolderPath() instead of SHGetFolderPath().
With Windows 2000, SHGetSpecialFolderPath() was superseded by ShGetFolderPath() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
BOOL SetupDiEnumDeviceInfo(HDEVINFO DeviceInfoSet,DWORD MemberIndex,
PSP_DEVINFO_DATA DeviceInfoData);
Is there any function to get "MemberIndex" straightway?
with regards
RYK
-- modified at 4:44 Tuesday 17th April, 2007
|
|
|
|
|
VC_RYK wrote: BOOL SetupDiEnumDeviceInfo(HDEVINFO DeviceInfoSet,DWORD MemberIndex,
PSP_DEVINFO_DATA DeviceInfoData);
Is there any function to get "MemberIndex" straightway?
MemberIndex is an input parameter - there's nothing to get. If you're asking if there is a way to get the number of items that the enumeration will return, the answer is no.
Judy
|
|
|
|
|
I have to make an older c++ project Vista Ready, and I run into some strange problems. When the code below is executed, I get a File search dialog with files which I cannot find in the Log directory with file explorer . When notepad is executed, it reports an error that it cannot find the selected file. I can see that the main program is writing to the Log files, because the size and date/time in the Serach dialog, but I cannot find the files with file explorer. The Log directory is in C:\Windows\Progam Files\SoftwareName. It works without problems on a Windows XP / 2000 system.
{
csPath.Format("..\\Log");
csPathAndFile.Format("%s", ShowFileSearchDialog(m_hWnd, m_pParentWnd, "Log files|;VltLog*.log||", csPath));
csExecute.Format("notepad %s", csPathAndFile);
WinExec(csExecute, SW_SHOW);
}
CString ShowFileSearchDialog(HWND hWindow, CWnd* pParent, char szFilters[], CString csInitDirectory)
{
CString csPath;
BOOL bOpen = TRUE;
CFileDialog* dlgFile;
OPENFILENAME ofnLocal;
dlgFile = new CFileDialog(bOpen, NULL, NULL, OFN_HIDEREADONLY, szFilters, pParent);
if (!csInitDirectory.IsEmpty())
dlgFile->m_pOFN->lpstrInitialDir = csInitDirectory.GetBuffer();
dlgFile->m_hWndOwner = hWindow;
if (dlgFile->DoModal() != IDOK)
return "";
ofnLocal = dlgFile->GetOFN();
csPath.Format("%s", ofnLocal.lpstrFile);
return (csPath.GetBuffer());
}
|
|
|
|
|
You need quotes around the filename being passed to notepad on the command line.
|
|
|
|
|
Don't you hate it when you're voted down for giving good advice? Anyway, I've given a balancing 5.
Steve
|
|
|
|