|
i have IDD_mainmenu as default created by VS2010 . When I click a File in mainmenu with handle click and call another Dialog . It is alright . But when I create a button and create class for that dialog to handle click button event . When I click , no thing happen ! . I have try and Ask many but rare people know
http://www.mediafire.com/?2gwt06lg3sd794m
When run , click on HERE and then Button1 . After click no thing happen even when program handler event to show the message .
I test and find no error but it does not do .
Thank you .
hi world
modified 19-Mar-12 1:24am.
|
|
|
|
|
It is not clear what your actual problem is. Try showing the code that is relevant to the problem, including the resource script.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Ihave source code but I do not know where to put it . may be in media fire .
please run and click in HERE in menu and then click button1 and you will find out that nothing happen .
http://www.mediafire.com/?id1mtk6368dc37v[^]
hi world
|
|
|
|
|
Sorry but you need to do your own testing and debugging and then come back here and explain exactly what is going wrong, and where, in your code.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Your question isn't clear, maybe if you share some code we can be of more help.
|
|
|
|
|
Hi,
I want to do digitally signed my MFC application. If I select the file->right-mouse click ->properties : there shoould be a ‘Digital Signature’ tab.I read over net also about it but could not get clear idea. Shell I need to buy Microsoft authenticode certificate or I can do my own.
|
|
|
|
|
I think this[^] here is pretty clear.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
I am just trying to install using Installshield 2009 a demo driver written by me.
I wrote a demo inf file.
I also wrote a simple console application in VC++.
Then I wanted to install the application along with the drivers and so I created Basic MSI Project and added my application exe to it.
After this I added my inf file to it using Device Driver Wizard(located in Set Up Design >>> New Feature) where installshield also added the .sys and .cat files.
Now the problem is that when I run the generated msi file it only installs the application and the driver does not installed.
During installation it gives me a Windows Security window and when I clink on "Install this driver software anyway" it proceeds ahead for install completion.
But the are no drivers in system32/drivers and no entried in registry.
The demo driver contain just basic driver functions with printfs in them.
The inf contains:
[version]
Signature="$CHICAGO$"
Class=RKP_LTO_DEMO_DD
; GUID created by me usingGUIDGEN tool
ClassGuid={03E9C4D5-178E-4684-B407-A3E103D71CE9}
Provider=%DD_DEMO%
CatalogFile = dd_demo.cat
DriverVer=02/24/2012, 2.0.1.2
[DefaultInstall]
CopyFiles=XYZ_Device.Copy
AddReg=XYZ_DeviceHW
[XYZ_Device.Copy]
demo_dd.sys
[XYZ_DeviceHW]
HKLM,SYSTEM\CurrentControlSet\services\,demo_dd,0x00000000,"%12%\demo_dd.sys"
[SourceDisksNames]
1=%LTO_DISK_NAME%,Sample_DIF,0
[SourceDisksFiles]
demo_dd.sys=1,,
[DestinationDirs]
XYZ_Device.Copy=12
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
DD_DEMO = "RKP XYZ DD DEMO"
DisplayName = "RKP XYZ Driver Install Frameworks"
ClassName = "rkp xyz dd_demo"
DD_DEMO.DeviceDesc = "Rkp Xyz WI DIF Sample"
lto.SVCDESC = "RKP XYZ Device Driver"
LTO_DISK_NAME ="RKP XYZ Installation Disk"
The installshield install log gives the following message (0xE0000301):
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: WARNINGRIVER_PACKAGE_LEGACY_MODE flag set but not supported on Plug and Play driver on VISTA. Flag will be ignored.
DIFXAPP: INFO: Installing INF file 'C:\Program Files (x86)\DEMO\My Product Name\dd_demo\dd_demo.inf' (Plug and Play).
DIFXAPP: WARNING:No device Ids found in INF 'C:\Windows\System32\DriverStore\FileRepository\dd_demo.inf_amd64_neutral_c3727dded0bf2410\dd_demo.inf' for current platform.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE0000301)
The driver gets installed when I install it using run32dll.exe.
I verified this by checking the system32/drivers folder and the seeing the registry entry.
But with installshield it does not install it.
Will anybody pls let me know what might be the issue and how to resolve it?
How to fix this issue?
|
|
|
|
|
Run chkinf on your inf file, it is part of the DDK/WDK.
It will tell you about missing sections and so on.
However, all you need for a simple driver is a services registry entry. Of course if it interact with the network stack you need a lot more, but for a basic driver a simle reg script might suffice.
--edit--
Oh yes, and here is another example of why Maunder should create a specific Kernel forum on CP. This sort of question, as well as the recent windbg ones, are NOT C/C++ and are NOT Hardware and Devices relevant.
==============================
Nothing to say.
|
|
|
|
|
Thanks Eric for the reply.
There is no installation/driver forum on CP and since I had a C++ application along with a driver I put query in C++ forum.
Apologize me for that.
I had used chkinf and it gave me no error:
NTLOG REPORT--------------
Total Lines: 36 |
Total Errors: 0 |
Total Warnings: 3 |
--------------------------
Line 0: WARNING: (W22.1.2212) No Copyright information found.
Line 3: WARNING: (W22.1.2215) Class RKP_LTO_DEMO_DD (ClassGUID {03E9C4D5-178E-4684-B407-A3E103D71CE9}) is unrecognized.
Line 3: WARNING: (W22.1.2203) Custom defined Classes should have a [ClassInstall32] section.
But since this is a simple inf file to just copy files and create registry entry I doubt we need more sections.
Any idea where exactly I am missing?
|
|
|
|
|
Dont apologise. I have been on to Maunder for a while to create a kernel forum.
First, eliminate the warnings. Tfhis is the kernel here, we accept nothing but 100% perfection. (And seriously, I mean that. It is either 100% or it is crap. Nothing in betweem.)
So, ewhen the inf checks out OK and rins you need to check the services key to make sure the driver is there. If not, the inf failed in some way. Look at setupapi.log file, it will tell you about inf based installs.
If the services entry is there, we need to look at signing, turn off driver signing checking, else the system wont load it.
Slight aside here, drivier signing checking on 64 Vista+. Originally you couldnt load unsigned drivers, then the driver dev world got pissed of with MS, and they changed it, but you have to be booted in debug mode (last I heard, but it is possible they changed it on later OSs. Check on google).
It coule be your driver is loading, but failing driver entry. So, after it loads (supposedly), do a sc query <driver service="" name=""> and see if it says running.
If not, it is time to hook up windbg and set a breakpiont on your driver driverentry. bp <drivername>!driverentry
Load it, and it should break. (set the symbols up.) Then you can see if it is failing in driverentry. If it suceeds driverentry, your driver IS running.
If your service entry is there, but driverentry isnt getting hit, then you need to make sure it is compiled properly, it needs a check sum, so make sure you use the ddk build utility.
Yep, its PITA, but thats why I get paid so damn much!
==============================
Nothing to say.
|
|
|
|
|
Hello I was reading on how smart pointers allow the C++ language to have the functionality of a garbage collector, but I wanted to know what are the cons or not to dos on using smart pointers.
|
|
|
|
|
|
If you have reference counted smart pointers their storage can last beyond the scope of the original variable and lead to some confusing code.
But they are usefull. You dont need to trap every exit point from the code the smart pointer is declared in since its destructor, called automatically when it goes out of scope, frees any allocated memory for you.
Of course, for a purist, one might like to manage your memory yourself, and consider smart pointers as lazy.
==============================
Nothing to say.
|
|
|
|
|
I was wondering if there was an easy way to convert the following line to a format that shortens the number and adds a suffix of KB, MB, GB.
Or if I need to write my own function to do the calculations.
swprintf_s( szFileSize, 24, L"%ld", filesize.QuadPart );
|
|
|
|
|
I don't think there's any function that's already made for the task, though it is very simple - a couple of lines in fact.
Here's some code I have in an app:
case WM_FILE_DOWNLOAD_PROGRESS_AVAILABLE:
progHdr = (downloadHeader_t*)lParam;
if (progHdr->bComplete)
sprintf(buffer, "Complete");
else
{
if (progHdr->contentLen > 1024*1024)
sprintf(buffer, "%.2f MB", (float)progHdr->contentLen / (1024*1024) );
else if (progHdr->contentLen > 1024)
sprintf(buffer, "%.1f KB", (float)progHdr->contentLen / (1024) );
else
sprintf(buffer, "%d B", progHdr->contentLen);
}
setListViewItemDownloaded(listWnd, (int)progHdr->lParam, buffer);
return true;
|
|
|
|
|
Technically, if you follow the international standards, you are converting to "KiB", "MiB", or "GiB", which are the binary (base 2/1024) numbers. "Kilo" is reserved to the traditional Metric System usage. Computer people have just usurped and altered its usage. Good luck getting people to change though
Wikipedia article[^]
|
|
|
|
|
Yeah, yeah - go through that rubbish most times I buy a new storage device. Of course a manufacturer that uses 1000 bytes to mean a KB is providing less than the box makes me think I'll receive.
Anyhow, the debate is a total non-starter as far as I'm concerned.
Why?
I'm interested in the numbers reported being consistent with the OS.
Windows uses 1024 bytes = 1 KB, and so do I - simple!
EDIT: Though thanks for pointing that out. I'd intended to, but forgot.
|
|
|
|
|
Sorry I took so long, went to Vegas this weekend.
Thanks for the good idea's, Wrote this real quick, but the compiler is complaining about the * in GB saying integral constant overflow. I'll look it up fix it.
I went with the non-correct naming format, don't want to confuse anyone with the correct format.
|
|
|
|
|
Besides the other comment you might want to consider carefully exactly what your target audience considers a 'KB', 'MB' and 'GB' to be. Might be binary. Might be decimal.
|
|
|
|
|
Hello,
I've been asked to help create a pretty GUI, and have a jpg to work with. Unfortunately I'm not generally a GUI developer, so have no idea if this is a standard problem or not.
Has anyone tackled a similar problem in the past, converting a typical win 95 style interface into a sleek and stylish iPhone style interface, in MFC?
I expect the easiest way will be to set the JPG as the window background, then shift things around and change graphics objects until they look the same.
Does anyone have any advice they can give me, or reading material that might be useful?
Thank you!
|
|
|
|
|
Codling2020 wrote: reading material that might be useful
Take a look in the articles section here on CodeProject; there are lots of useful samples.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
CDHtmlDialog[^]. There are many articles on how to use it, here on code project
With the addition of HTML and javascript you can do a great GUI, though it is also possible with Qt library, if you wish to use it.
You talk about Being HUMAN. I have it in my name
AnsHUMAN
modified 16-Mar-12 0:54am.
|
|
|
|
|
Hey,
I am searching for some small c++ projects with documentation . can some one help? , where i can find such projects. My programming level is not very good.I know all the functions and syntax use in c++, now i want to look some small projects with documentation.
thank you
johan
|
|
|
|
|
My advice is: read some C++ tutorials (or better a good book) first.
You may find many many open source projects on the web.
You may also have a look at Microsoft Visual C++ code samples[^].
Veni, vidi, vici.
|
|
|
|