|
You are trying to distribute a debug version of your program on a machine that does not have Visual Studio installed. Do you really want to do this? If not, compile a release version and distribute that instead.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
I was compiling the a release, and executing that build in my own machine with VS 2005, thus it was weird that it was asking for a "D" dll.
I created my own class that talks to NDISUIO driver, because I couldnt use WRAPI, but thank you anyway for your help.
|
|
|
|
|
I have created a CRebar control and added several toolbars and dialog bars to it. The rebar control seems to maximize the first toolbar so that the rebar fits across the screen. Is there a way to make it minimize all toolbar controls so that the rebar is "left justified"?
I would appreciate any suggestions!
Thanks!
|
|
|
|
|
how do i create a thread without MFC support? may in a win32 console?
regards,
Rookie
Installing MFC...2% complete
|
|
|
|
|
|
Platform SDK CreateThread function. Go look it up in MSDN.
using System.Beer;
|
|
|
|
|
|
Rokiee wrote: may in a win32 console?
Since the others answered the the thread reference, I will briefly answer this. yes, absolutely. I've run threads from Windows 2k forward in massive quantities from consoles to windows GUI apps. As mentioned it is the dll reference.
Just remember there are issues with threads, reentrant code, blocking, race conditions, etc.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
_beginthread and _beginthreadex are generally better then using CreateThread - You can get into trouble using CRT functions from a thread created using the CreateThread API. See here.
Steve
|
|
|
|
|
Rokiee wrote: how do i create a thread without MFC support? may in a win32 console?
http://www.flounder.com/workerthreads.htm[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Can somebody help me design a small program in c++ to check both ntfs shares and file shares for 1 machine.
I have tried using ADSI but i just dont get the attributes.
Any links would be useful
Kelvin Chikomo
-- modified at 8:49 Monday 16th January, 2006
|
|
|
|
|
Have you tried NetShareEnum() or NetShareGetInfo() ?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Do you have any sample code for these methods: NetShareEnum() or NetShareGetInfo()
?
Kelvin Chikomo
-- modified at 9:26 Monday 16th January, 2006
|
|
|
|
|
NetShareEnum
NetShareGetInfo
Google
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Thanks alot for the links, they are very helpfull. I am now getting these 2 errors :
error LNK2001: unresolved external symbol _NetApiBufferFree@4 and
error LNK2001: unresolved external symbol _NetShareGetInfo@16
I think i am missing some libraries what could i include?
I tried including activeds.lib and adsiid.lib but i still get the same errors
Kelvin Chikomo
|
|
|
|
|
Look up the NetShareGetInfo function in MSDN. Scroll down. See the table at the bottom where it tells you what library the function is implemented in?
"Link to Netapi32.lib.
Link to Svrapi.lib in Windows Me/98/95."
using System.Beer;
|
|
|
|
|
hi!
i've made a software and i want to know how can i put the .exe file in the internet explorer where the icons like messenger are, anybody can help me?
|
|
|
|
|
Your question is not worded very well, but I think you want to add your application's icon to the system tray.
Check this function. There are many articles here on CP on systray icons.
Shell_NotifyIcon(...);
And actually it is called windows explorer or explorer, not internet explorer.
Now if you want to add a button to the internet explorer's toolbar, that is a different matter. That will be a BHO (Browser Helper Object).
this is this.
|
|
|
|
|
Hi everybody. I'm running into a bit of a complication when creating a window of the class "Static". I want to create using CreateWindowEX a simple text label. All went fine until I wanted to change the background color and text color. I can set the font ok, but when it comes to colors, I simply can't understand what to do! Here's how I create the window, with the necessary comments.
hwndControl = CreateWindowEx //Creating the window.
(
NULL, //ExStyles.
"Static", //Class name.
Text, //Text of the label, appears ok, using the font I give it.
WS_CHILD, //Styles.
0, //X.
0, //Y.
100, //Width.
30, //Height.
hwndThis, //Parent.
NULL, //Menu.
(HINSTANCE)hwndThis, //This is the handle of a window which contains this window.
NULL //CreateStruct.
);
hwndThis is a handle of another window, a WS_POPUP. I created that window too, and in it, I want to load this new window, the label.
So how do I change the colors? I subclassed this window but I don't receive any WM_CTLCOLORSTATIC or WM_CTLCOLOR messages. I only get WM_PAINT, WM_NCPAINT and WM_ERASEBKGND. I don't want to totally rewrite the paint since that would totally miss the point of me creating this Static control: I want to benefit from Window's wrapping and aligning the text.
Thank you in advance for your help ::- ).
For those who don't know, this is for a freeware application I'm working on, anybody that helps me will do so for a good cause, and will be mentioned in the Thanks section.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Handle WM_ERASEBKGND , and set the color of the DC you get in OnEraseBackground to the color you like.
~RaGE();
|
|
|
|
|
I didn't mention that this isn't a MFC application. Do I even have OnEraseBackground???
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Axonn Echysttas wrote: I didn't mention that this isn't a MFC application. Do I even have OnEraseBackground???
handle WM_CTLCOLORSTATIC in your WndProc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hey Alok :- ). I can't. Read my initial message. I don't get that message!! I don't receive WM_CTLCOLORSTATIC at all.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
WM_CTLCOLORSTATIC is sent to the parent of the static text control (the window identified by hwndThis in your first post).
Steve
|
|
|
|
|
Hi
I've developed a service application using the class of P.J. Naughter which was a good base class for our application. Although everything works fine, I am now encountering some problems related to the security policy of the user where the services. I can't access any network path or resource (like printer). A solution could be to run the server with the NETWORK SERVICE account. But then the application fails altogether.
Does anyone has encountered any similar problems, or knows of a solution.
Are there any good books to write a Windows Service in C++, or even detailed books about services. Right about now any help would be very welcome.
Kurt
codito ergo sum
-- modified at 10:54 Monday 16th January, 2006
|
|
|
|