Thanks Mike! Gonna use NetWkstaGetInfo()
rw104
Posts
-
Network Machines -
Network MachinesSounds good thanks!!!:-D
-
Network MachinesIs there any Network based API Call to determine whether a machine exists on a network, a bit like what the '_access' call does for files?
-
I don't have the CTime for this!Sorry regarding the e.g. e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 05.00am (GMT +4:00 DST).
-
I don't have the CTime for this!Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).
-
CComboBox dropdown bit is hiddenCheers Iain just the trick!!
-
CComboBox dropdown bit is hiddenHi, I am after a quick fix. I have dynamically created a CComboBox control. It works fine, but the drop down part does not seem to draw. I cannot see any obvious calls to adjust the height of the dropdown Cheers
-
Active X Kids!!Can I manually insert an activeX into to an existing activeX?
-
How to draw a bitmap from the memory.CDC imgDC;//temp CDC to render the bitmap into imgDC.CreateCompatibleDC(pdc); //pdc is the standard screen dialog CDC, imgDC needs to be compat.. CBitmap yourBitmap; yourBitmap.LoadBitmap(IDB_RESOURCEIMAGE); //IDB_RESOURCEIMAGE is an image resource //You already have a pointer to a bitmap so you do not need these two lines. imgDC.SelectObject(yourBitmap);//bitmap gets selected into the dc //bitblt the image , you 'll need to decide co-ordiantes pdc->BitBlt(0,0,100,100,&imgDC,0,0,SRCCOPY); That's it;P
-
Bitmap print problemSoz!,other replies were not there when I replied, Im just not quick enough, well I was eating lunch!!:~
-
How to draw a bitmap from the memory.Select the bitmap into a new device context, (must be compatible, CreateCompatibleDC() does this); then just CDC->BitBlt(); on the OnPaint() proc of the dialog app
-
Bitmap print problemI expect that the bitmap is tiny on the print out? is this what is happening? if so it is because you are drawing the bitmap into a printing device context, in which case a much higher resolution is used, you need to use the CDC function StretchBlt() to draw the bitmap into a resolution equivalent rectangle which you will need to work out. So look up StretchBlt()on MSDN its is very simple.!! this function simply stretches the bits in the bitmap accordingly. Print preview probably works because it uses a screen DC just like what you are drawing on. P.S. I hope this is the problem you are getting, if not soz!! :-D
-
Carriage return- How to identify?It has an ascii value of decimal 13, eg. if(nChar==13)AfxMessageBox("Carriage Return");
-
Window style for manually created CEditI have create some dynamic CEdit controls.. e.g... CEdit newEdit; // as a member var of class in the header newEdit.Create(WS_VISIBLE|ES_NUMBER|WS_DLGFRAME ,startRect,this,NULL); ... What window style flags do I need to set so the CEdit looks like a standard CEdit that you get when adding to a dialog resource? Thanks in advance
-
dialog box constantly reappearingAre you calling UpdateData in the right place\correctly? Sounds like the associated member variable is not being kept up-to date as you are expecting. You may already know this, but its a possiblilty all the same!! X|
-
Active X subclassingI have subclassed an the EDIT control in my active x project. How can I get at the base class data and methods, from within my super active x class? its really annoying, it must be so simple!!!;P
-
Subclassing / embedding Active X'sGreetings... In VC++ 6 I want to create an activeX that contains another activeX, is this possible? I have tried subclassing the control but I cant get the thing running? It works if you subclass from ActiveX's that are listed in the project wizard dropdown (upon wizard project creation, step 2 I think, like BUTTON for example) but does not if you are trying to inherit from a custom activeX!!! Cheers
-
Windows Shutdownwell spotted, I forgot that directly after I posted the message I had to go to the toilet and crack one off over your mum...
-
Windows Shutdowndoh! yeah yeah, realised that I soon as i pressed the submit button. thanks for the smart, witty, sarcastic comment though I did'nt expect that for a second
-
Windows shutdownhello, I want to prevent user shutdown. I am catching the WM_QUERYENDSESSION message and returning a 1, which occording to the inline help should stop the shutdown process. It works on occassions but crashes on others, it seems to be completely inconsistent too...I know i am cathing the WM_QUERYENDSESSION so its not anything else... Is there something else I need to do??? Thanks in advance