|
In a simplicistic approach you may just try to open ports iteratively. The call will fail on not available ports (i.e not existing or busy ones).
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]
|
|
|
|
|
How to programmatically extract or get the signer name and counter-signer name from an exectuable file if it is digitally signed.
Is there any API or any raw method.
|
|
|
|
|
|
The given link is about "Digital Code Signing" and i need to retrive information programmatically from digital signature embedded in an executable such as signer name and counter signer name.
|
|
|
|
|
Please check if the following link helps: http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx
|
|
|
|
|
Hello experts,
Actually a quetion is generate on my mind. The Question is that how can we use .net dll used in MFC VC++.
ThanksIf you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: The Question is that how can we use .net dll used in MFC VC++.
You cannot, as there is no such thing. If you wish to use .NET features from C++ then you must write your program using Managed C++.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
So whether you want to use a MFC DLL in .net?
else case, it is wont be possible except the one mentioned in above answer.Величие не Бога может быть недооценена.
|
|
|
|
|
Hello Dear,
I am tacking about .net dll in MFC .If you can think then I Can.
|
|
|
|
|
Hello Dear,
I am taking about How to use .net dll in MFC ;If you can think then I Can.
|
|
|
|
|
|
Hi,
I'm running Visual C++ .Net 2003 with Service Pack 1, and .Net Framework 1.1, and I'm having issues with using GetComboBoxInfo and GetScrollBarInfo, even though they are available as functions when using the intellisense.
Although I've seen, tried and used a workaround to use the GetComboBoxInfo function, I was wondering if there is an update I need to install to avoid having to use the workarounds.
TIA
Tony
|
|
|
|
|
maycockt wrote: I'm having issues with using GetComboBoxInfo and GetScrollBarInfo
What issues did you come across?
|
|
|
|
|
OOps, I should have elaboarated on that.
Even though I have the option to use the functions, when trying to declare a COMBOBOXINFO or SCROLLBARINFO they come up as undeclared identifier, and GetScrollBarInfo is identifier not found.
As I said, I have used a workaround involving specifically declaring the struct and declaring links to USER32.dll etc.
What I really want to know is if there is an update that takes away the requirement to put so many workarounds in place to use this functionality?
TIA
Tony
|
|
|
|
|
maycockt wrote: ...and GetScrollBarInfo is identifier not found.
Look at the function prototype in winuser.h . Do you have WINVER defined to be 0x0500 or greater?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi Guys,
Thanks for your help.
Looking in the project settings I see the WINVER was initially configured for 0x410.
Nearly there
Tony
|
|
|
|
|
Hi,
How can we identify the valid hardware MAC address from the list obtained by GetAdaptersInfo API?
For example, in my machine there is a real Network Adapter and a Microsoft Loopback Adapter. I need to get the MAC address of the real Network Adapter.
Thanks in advance! - ns ami -
|
|
|
|
|
The documentation here[^] will explain it to you. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Did I miss something???
If you mentioned about MIB_IF_TYPE_ETHERNET, it is coming same for both real hardware and microsoft loopback.
Could you please clarify? - ns ami -
|
|
|
|
|
What about MIB_IF_TYPE_LOOPBACK ? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
For both hardware adapter and Microsoft Loopback adapter, the type obtained is MIB_IF_TYPE_ETHERNET. Not MIB_IF_TYPE_LOOPBACK for Microsoft Loopback adapter. So I cannot distinguish which is the hardware adapter. - ns ami -
|
|
|
|
|
OK, I guess you will have to try something else. Sorry, a long time since I used this in anger. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I think you need NetWkstaTransportEnum([^]), it will out the MAC address buffer. Величие не Бога может быть недооценена.
|
|
|
|
|
Something in my app. (C/Win32)is setting SetLastError and I want to debug it, eg capture all calls in my process to this function.
Any idea how I'd configure VS to break here?
Thanks
|
|
|
|
|
Maybe try hooking SetLastError, check out API hooking revealed[^] for details. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|