|
I tried with Google..
And some results says " try to copy encrypted files""
And some other says " Mal ware affected the system"
I formatted the system..Then my program works properly
Thanking u
|
|
|
|
|
Did you try Google? The first return was your CP post, the second has the answer.
|
|
|
|
|
I need to retrieve all the properties of a dll say
1. Component ID
2. File version
3. Language
4. Copy right information
5. Description.
These are the information available when I right click on a dll and check its version.
Can I have a code snippet which will rerieve all this information.
|
|
|
|
|
We can check the resource for no.2-no.5 but I don't know for no.1.
What is Component ID exactly? CLASSID or AppID? I cannot see that information by right click now.
Whatever classid or appid, you can search in file's resource, maybe.
|
|
|
|
|
Sorry if I landed in the wrong place, I could not see an Ada section...
I get all the strange jobs. So here we have a very large amount of Ada code, as dll, which I call from C++. When my C++ is running in debug mode, no problem. In release mode (yes, I have written here before about this) it finds a memory leak when doing new, gives me an access violation and crashes. I followed this carefully as advised by yourselves. There are no memory leaks whatsoever in my C++ - DevPartner says so and I think so too. However, my ada.dll has a leak. Aonix dlls always have leaks, in my experience, but little ones you can live with. This one is different. So I got a new Aonix compiler, 8.4 (yes, I would prefer Gnu but they won't give me it, so there) and rebuilt it. I got patch U2 for it, which is intended to stop it making memory leaks when calling external dlls. Well, this Ada calls some very old external Fortran dlls (don't I get the FUN jobs).
I have the very uncomfortable feeling I should get those Fortran dlls recompiled, but they are GFE.
Our wise and intelligent buying department did not get me a maintenance contract, so Aonix are not being very helpful.
Has anyone else seen this?
Is there a memory leak finder for Ada similar to DevPartner?
Is patch U2 no good?
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
|
|
|
|
|
My advice is: rebuild all from scratch, saying bye bye to all the FORTRAN and Ada stuff.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello Friends
Do anybody of u knows the any web link where i can get all library files of openGl ?
Thanks in Advance
Regards
Yogesh
|
|
|
|
|
This will be what you are looking for [^]
|
|
|
|
|
Opengl comes default with visual studio and platform SDK installations. No need to install seperately.
|
|
|
|
|
Hi Friends,
My application crashes with an error saying "Demo Application pk/si component has stopped working". The systems Event Viewer log shows an error with the following details.
"Faulting application Demo.exe, version 1.0.0.1, faulting module OLEACC.dll,version 4.2.5406.0, time stamp 0x4549bd93,exception code 0xc0000005,fault offset 0x00004062,process id 0x154c,application start time 0x01c9ee94aab4c550"
I am using Windows Vista Home Premium edition and the application which i created was a Vc++ SDI application.
Please let me know if anyone have come across this issue and what could be the possible solution for the same.
Thanks in Advance
Shanmuganathan.S
|
|
|
|
|
I am using following code for media player play/pause operation
HWND mpHandle = ::FindWindow(_T("WMPlayerApp"), _T("Windows Media Player"));
if(mpHandle)
{
::SetForegroundWindow(mpHandle);
::SendMessage(mpHandle, 0x0111, 0x00004978, 0x00000000);//Play/Pause
}
By the above code, if windows media player is playing then pause the player otherwise play.
How can I get the status of media player whether it is running or it is paused?
|
|
|
|
|
Did you fix your problem? I also want to get the status, could you please share your solution to me ?
|
|
|
|
|
Hi.Does anyone know how to cast an SP_CLASSIMAGELIST_DATA structure to CImageList class? Is it possible? I'm guessing it should be but can't seem to be able to do it. Actually I've retrieved an imagelist of all devices using SetupDiGetClassImageList function into a SP_CLASSIMAGELIST_DATA structure. I'm now trying to set it to be the imageList of my Tree Control that lists the devices. However due to these casting issues I get a runtime assertion error and my application crashes. Any ideas?
I've tried the following methods but have failed with the same runtime error.
Method 1:
<i>PSP_CLASSIMAGELIST_DATA imageList;
SetupDiGetClassImageList(imageList);
<b>m_Tree.SetImageList((CImageList *)imageList->ImageList,TVSIL_NORMAL);</b></i>
Method 2:
<i>PSP_CLASSIMAGELIST_DATA imageList;
CImageList imList;
SetupDiGetClassImageList(imageList);
<b>imList.Attach(imageList->ImageList);
m_Tree.SetImageList(imList,TVSIL_NORMAL);</b></i>
I have bolded the lines that are causing the crash.
|
|
|
|
|
Can you show me the definition of CImageList and PSP_CLASSIMAGELIST_DATA?
|
|
|
|
|
Hey, I've added all the code relevant to retreival of ImageList below. There is nothing other than this in my code. Please have a look and let me know what modifications it would require. Thanks!
Code:
PSP_CLASSIMAGELIST_DATA imageList={0};int imIndex;
CImageList imList;
imageList->cbSize=sizeof(SP_CLASSIMAGELIST_DATA);
SetupDiGetClassImageList(imageList);
imList.Attach(imageList->ImageList);
m_Tree.SetImageList(&imList,TVSIL_NORMAL);
/*devInfo is a valid SP_DEVINFO_DATA structure.I know this because the tree control shows the correct output(without any images though)*/
SetupDiGetClassImageIndex(imageList,&devInfo.ClassGuid,&imIndex);
I later use imIndex to set the iImage property of TVITEM structure. This is node that is later inserted into the tree.
|
|
|
|
|
So,
m_Tree.SetImageList(&imList,TVSIL_NORMAL);
caused a runtime error, you said?
What kind of error you had at this time?
If you had application error like 0xc0000005, some pointer maybe invalid.
Other error, I cannot imagine the situation at this time.
|
|
|
|
|
Yes it is an application error where it refers to some address claiming the memory could not be "read". However, if that statement is commented out all seems to run fine. So all I can conclude from this is that the problem lies in these 2 code statements of Attach and SetImageList functions. I really can't figure out what could possibly be causing this and am really close to giving up on the idea of adding images! Please Help!
Exactly the error is as follows:
The instruction at "0x00405652" referenced memory at "0x00000004".The memory could not be "read".
modified on Friday, June 19, 2009 2:27 AM
|
|
|
|
|
> referenced memory at "0x00000004".
This usually means that offset 4 of pointer which points null is not accessible.
So you can check the member whether null or not of imList.
If you use visual studio IDE, you can step into codes and can check any data is null or not.
|
|
|
|
|
Hey,
I think that I've found a problem in your code. Please see the modified code below,
<br />
SP_CLASSIMAGELIST_DATA imageList = {0};<br />
int imIndex;<br />
CImageList imList;<br />
imageList.cbSize=sizeof(SP_CLASSIMAGELIST_DATA);<br />
SetupDiGetClassImageList(&imageList);<br />
imList.Attach(imageList.ImageList);<br />
m_Tree.SetImageList(&imList,TVSIL_NORMAL);<br />
Hope it helps..
|
|
|
|
|
|
If you open the dll as a "resource" in msdev or devenv then you can edit copyright information.
|
|
|
|
|
Is it a dll owned by your firm....
Beware that you are not violating the copyright norms
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hai!
In any MFC dialog based application if we go to Resource view->and click on Version
we get a version info of our application in the version info there are two bocks :
1. FILEVERSION 1,0,0,1 and PRODUCTVERSION 1,0,0,1 etc
then a black line as separator then
2. Block header, Comments , company name and then File vesion product version etc.
Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function??
Thanks!
|
|
|
|
|
kapardhi wrote: Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function??
User GetFileVersionInfo function. For a demo have a look at the Process viewer[^] application.
|
|
|
|
|
Sorry for not providing a detailed information!
I actually want to get the version information programmatically for a Pocket PC WIN CE device, I am developing the application in eVC++
I have used GetFileVersionSize (), GetFileVersionInfo (), VerQueryValue() in Visual studio 2005, which was working but not in eVC++
Can i get version information for a PocketPC Application, because if i implement the above functions i get 1814 as error using GetLastError() after executing GetFileVersionInfo() stating "The specified resource name cannot be found in the image file." what does this mean ??
Thanks!
|
|
|
|