|
|
i am through all the things mentioned in that posts.
my issue is my application has to run for windows XP-64 bit.
and the registry stuff is not working. i have tried all the stuffs mentioned.
any other feasible ideas???
thankyou.
|
|
|
|
|
if u want to run ur stuff in 64, there few things that should be taken care.
if u want to make 64 bit application run on 64 bit environment, firstly compile it as 64 bit. And build it, and some API in 32 bit wont work. Definitely you can use registry APIs in 64 application, using which you can modify registry.
If want to port your 32 bit application to 64 bit then
1. Build using vs 2008(64 bit support enabled) is must.
|
|
|
|
|
yes.it's been done the same way in which u are saying.
do u have any ideas or any means to disable the cd/dvd rom in windows xp proffessional 64 bit??
i am following all the pre-requisites for 64 bit development.
hope to get a feasible solution this time..
thankyou.
|
|
|
|
|
I'm working with the project that using VC++ connect to SQL Server 2005.
I have a problem about making report from the data that get from database for print out to printer.
Please advise me the solution How can I use MFC to work with this issue.
|
|
|
|
|
See here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi,
I'm looking for a way to determine that XP (or XP embedded) was shutdown correctly. Is there a way to see that in registry or is there som Windows API-calls that can tell me that?.
With Kind regards, Ole
|
|
|
|
|
|
excellent thanks. Any idea about this in windows7
|
|
|
|
|
HI
i want to make the usb device read only
i already opened the handle for the usb device
now i need to send scsi command to usb device to make it read only
aftert that i will appy dacl to that
now i need to know which scsi command i need to pass to the usb device
and how can i pass that command to usb device using DeviceIoControl
i am using VC++ and visual studio 2005
when ever you are free post the above topic in forums
|
|
|
|
|
Hey people!
In our program a dialog box is displayed with an edit field and some buttons and above the dialog a layered notification window is brought up, stays up for a while (the user has to wait at that point) and then is faded out (using UpdateLayeredWindow). The problem is that all the controls on the dialog (which was under the layered window) remain undrawn and the dialog looks like it has holes on it where the edit field and buttons are (you can then make the controls be drawn for example by dragging another window over the dialog and then removing it). Any idea why we get this and how we could resolve it? I tried playing with the clipchildren style and also tried using RedrawWindow to trigger a redraw but it did not work, also using a RedrawWindow-like solution is very ugly and problematic because the dialog and the layered window both are brought up by different message handlers from different parts of the code and they generally do not know of each other (and i would really like to keep it that way).
Thanks in advance for any usefull hints, fellas.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi All,
I am trying to use _stat C runtime method for a file with time stamp before 1970. It simply crashes.Anybody knows the reason?
Note: My time zone is GMT-5.00 (Eastern time [us+Canada]).
- Vikram S
|
|
|
|
|
_stat uses time which states in the documentation:
The time function returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970
|
|
|
|
|
As far as C is concerned, time (== time_t) started on 1st January 1970[^] - your file with an earlier timestamp is obviously blowing the C runtime's mind. It's like saying to a physicist "here's a file from 10 minutes before the universe existed" - does not compute!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
So what method I should use for stat?
- Vikram S
|
|
|
|
|
I have to ask one question - are file date-times before 1970 actually meaningful? They obviously aren't proper create/modification dates, so why do you need to manipulate them?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
My customer has this kind of data files!
|
|
|
|
|
With creation and/or modification dates prior to 1970? Really.
OK - what do you need from the _stat function? You should be able to use Win32 functions to determine the values of file attributes that _stat gives you.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I write dialog box application using MFC.
my questions is after run the application we are able to view the dialog box there is no problem.
when user click the ok button in the dialog box then i have call userdefind class call MYclass.
From the MYclass I need to create one ProgressBar control and placed to dialog box.
Please clarify me how to create progressBar control from Myclass.
Thanks.
|
|
|
|
|
By reading your description, it seems your design is a bit wrong. In general, you shouldn't let other classses manipulate the controls on your dialog.
What are you trying to achieve at a higher level ? Why does your class need to add a progress bar on your dialog directly ?
|
|
|
|
|
Hi
In my application ,I loaded a dll and tried to update a string in that dll using UpdateResource function,but it is not changing the string in that dll.Please Help !
CString strDll = "C:\\MyRES.dll";
CString strTest = "END";
WORD wLang = MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT);
UpdateMyResource(strDll, _T("108"), wLang, strTest.GetBuffer (strTest.GetLength ()), strTest.GetLength ());
BOOL CBTNDlg::UpdateMyResource(const CString &strFilePath, LPCTSTR lpszResourceId, WORD wLangId, LPVOID lpData, DWORD dwDataLength)
{
HANDLE hUpdate = ::BeginUpdateResource(strFilePath, FALSE);
if (hUpdate == NULL)
return FALSE;
BOOL bUpdateResult = FALSE;
bUpdateResult = UpdateResource(hUpdate, RT_STRING, lpszResourceId, wLangId, lpData, dwDataLength);
return EndUpdateResource(hUpdate, FALSE) && bUpdateResult;
}
|
|
|
|
|
Where has the error occurred?
Has BeginUpdateResource succeeded?
What does UpdateResource return?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I am getting back to VC++ after a long time. I am using VS 2008 SP1. It is a simple application a button, an editbox (plain) and a richedit box. When i added a control variable (CString) to richeditbox2, a message pops up that i must call this function. The messagebox now does not show again. when i run the program, i get no errors but the dialog fails to load.
I get the following in output window.
<br />
Binary was not built with debug information.<br />
Any info will be appreciated.
|
|
|
|
|
Are you calling AfxInitRichEdit2[^] in your application? Not calling that can have the effect you're seeing...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Yes I tried that after finding some help online but it did not work. Still the same problem. I am using AfxInitRichEdit2() inside the OnInitiDialog as first line. I may need to recompile everything. I also tried linking to RichEdit20.dll ( in project setting) but did not work.
I am using Windows Vista SP1 and Visual Studio 2008 SP1. Could it be that the dll is missing. I tried searching for the dll but could not find it.
|
|
|
|