Search found 16 matches

by Fat Cat
Mon Jul 12, 2004 9:49 pm
Forum: Computer Hardware and Software
Topic: CBitmap problem in CTabCtrl
Replies: 6
Views: 4067

CBitmap problem in CTabCtrl

<r> is the syntax of your CreateCompatibileDC statements correct ?<br/> <br/> should they be;<br/> <br/> bmCDC.CreateCompatibleDC(pDC);<br/> <br/> bmCDC.SelectObject(bm);<br/> <br/> instead of;<br/> <br/> bmCDC->CreateCompatibleDC(pDC);<br/> <br/> bmCDC->SelectObject(bm);<br/> <br/> <br/> then use;<...
by Fat Cat
Mon Jul 12, 2004 9:27 pm
Forum: Computer Hardware and Software
Topic: CBitmap problem in CTabCtrl
Replies: 6
Views: 4067

CBitmap problem in CTabCtrl

<r> I don't do much with bitmaps (mostly OpenGL), but there are a few notes on loading bitmaps and moving bitmaps using CreateCompatibleDC at <URL url="http://www.gametutorials.com/Tutorials/win32/Win32_Pg3.htm"><s>[url=http://www.gametutorials.com/Tutorials/win32/Win32_Pg3.htm]</s>http://www.gametu...
by Fat Cat
Mon Jul 12, 2004 2:42 am
Forum: Computer Hardware and Software
Topic: CBitmap problem in CTabCtrl
Replies: 6
Views: 4067

CBitmap problem in CTabCtrl

<r> <COLOR color="#006060"><s>[color=#006060]</s><B><s>[b]</s>CDC* pdc = GetDC();<br/> bmCDC->CreateCompatibleDC(pdc);<br/> bm->CreateCompatibleDC(pdc,60,30);<e>[/b]</e></B><e>[/color]</e></COLOR> <br/> <br/> You have 2 "CreateCompatibleDC" commands one after another. The second one has 3 parameters...
by Fat Cat
Wed Apr 21, 2004 10:10 pm
Forum: Computer Hardware and Software
Topic: Cursor Control in C++ (Console)
Replies: 6
Views: 34478

Cursor Control in C++ (Console)

<r> #include <windows.h><br/> #include <stdio.h><br/> <br/> int main ( int argc, char** argv )<br/> {<br/> HANDLE hConsole = GetStdHandle ( STD_OUTPUT_HANDLE );<br/> <br/> if ( INVALID_HANDLE_VALUE != hConsole )<br/> {<br/> COORD pos = {32, 11};<br/> SetConsoleCursorPosition ( hConsole, pos );<br/> ...
by Fat Cat
Tue Apr 20, 2004 9:12 pm
Forum: Computer Hardware and Software
Topic: Question: How to resize a console window in C++
Replies: 5
Views: 1441

Question: How to resize a console window in C++

<r> Microsoft Visual C++ includes a sample application that has routines that allow you to set the console to any size you like and get the current console size info etc. You just pass the size parameters you want to change the size of the console window<br/> <br/> Unfortunately its a bit big to pos...
by Fat Cat
Tue Apr 20, 2004 8:23 pm
Forum: Computer Hardware and Software
Topic: Question: How to resize a console window in C++
Replies: 5
Views: 1441

Question: How to resize a console window in C++

<r> One non-automatic method you might try is to change the default size of the console window at runtime. To do this run your console application and then do a right click on the title bar of the console window. Choose the DEAFAULTS option and then the LAYOUT tab. Change the WIDTH to something like...
by Fat Cat
Mon Apr 19, 2004 11:33 pm
Forum: Computer Hardware and Software
Topic: VBA Forms Problem
Replies: 4
Views: 1387

VBA Forms Problem

<r> where I come from VB is a cold fizzy beer so perhaps I know more than I think (although thinking normally ceases after a few). <br/> <br/> <COLOR color="#888888"><s>[color=#888888]</s><SIZE size="85"><s>[size=85]</s>Archived topic from Iceteks, old topic ID:2243, old post ID:19221<e>[/size]</e><...
by Fat Cat
Sun Apr 18, 2004 9:23 pm
Forum: Computer Hardware and Software
Topic: VBA Forms Problem
Replies: 4
Views: 1387

VBA Forms Problem

<r> Your syntax looks fine to me. <br/> <br/> When closing the Help Form in the helpclose subroutine, you should automatically go back to the same Excel sheet you launched from if you leave out the mysheet.Select command.<br/> <br/> This command is normally used to jump to a different sheet inside t...
by Fat Cat
Tue Apr 13, 2004 2:06 am
Forum: Computer Hardware and Software
Topic: BIOS hard drive barrier
Replies: 4
Views: 1356

BIOS hard drive barrier

<r> Check your motherboard and BIOS to see how new they are. If they were made in the last year or so you should be OK. <br/> <br/> Windows XP Pro and a recent BIOS version should be fine with an 80GB drive without the need for loading a dynamic drive overlay. <br/> <br/> Since you have stuff on the...
by Fat Cat
Tue Apr 13, 2004 1:02 am
Forum: Computer Hardware and Software
Topic: Help with using drawing line!
Replies: 2
Views: 1311

Help with using drawing line!

<r> Not sure what programming language you are using, but check the flow control of your loops.<br/> <br/> <COLOR color="#006060"><s>[color=#006060]</s><B><s>[b]</s>var x, y, btnNumber, btnUpDown, buttons : int<br/> var nx, ny : int<br/> loop<br/> Mouse.ButtonWait ("down", x, y, btnNumber, btnUpDown...
by Fat Cat
Mon Apr 12, 2004 9:34 pm
Forum: Computer Hardware and Software
Topic: Cursor Control in C++ (Console)
Replies: 6
Views: 34478

Cursor Control in C++ (Console)

<r> C++ is really designed to work with windows rather than just a simple text console. Within a window you can place text boxes wherever you like (each with its own name) and any text you send to each text box appears within it formatted to fit the size of that box (ie: automatically word-wraps etc...
by Fat Cat
Thu Apr 01, 2004 2:02 am
Forum: Computer Hardware and Software
Topic: Turing Help
Replies: 3
Views: 1075

Turing Help

<r> is the syntax of some your conditional checks appears odd ?;<br/> <br/> EG; <br/> <br/> <COLOR color="#006060"><s>[color=#006060]</s><B><s>[b]</s>elsif x < 320 and x > 400 and y < 100 and y > 130 then<br/> return<e>[/b]</e></B><e>[/color]</e></COLOR> <br/> <br/> [ x can't be <320 AND >400 at the...
by Fat Cat
Thu Apr 01, 2004 1:47 am
Forum: Computer Hardware and Software
Topic: wrong user/group when files are created with fopen
Replies: 2
Views: 868

wrong user/group when files are created with fopen

<r> this may be a stupid suggestion from a newbie, but have you closed the file at the end of each write script ? (fclose) . If left open you won't be able to reopen it. <br/> <br/> <COLOR color="#888888"><s>[color=#888888]</s><SIZE size="85"><s>[size=85]</s>Archived topic from Iceteks, old topic ID...
by Fat Cat
Thu Apr 01, 2004 1:43 am
Forum: Computer Hardware and Software
Topic: Help with mfc
Replies: 4
Views: 2216

Help with mfc

<r> ShellExecute works by opening the filename specified with whatever program is associated with that file type in your registry. If you specify a filename with a .xls extension for eaxmple, it will check the registry and find the application Excel listed under ther shell subkey and then go and ope...
by Fat Cat
Wed Mar 31, 2004 10:48 pm
Forum: Computer Hardware and Software
Topic: Help with mfc
Replies: 4
Views: 2216

Help with mfc

<r> Can you use the "ShellExecute" command ? <br/> I use this to call up IE and link to a web page from clicking a button on a Dialog Box in an MFC application. If your second application is an executable (.exe) it should work.<br/> <br/> <br/> add your button/menu item and then double click on it i...
by Fat Cat
Wed Mar 31, 2004 8:46 pm
Forum: Networking and Security
Topic: Outgoing calls to port 139
Replies: 3
Views: 846

Outgoing calls to port 139

<r> <E>:huh:</E> I'm running a ZoneAlarm firewall and it keeps telling me that my coputer is trying to connect to port 139 on a large number of other computers on my LAN. Is this normal network activity or something that I should be concerned about ? <br/> The computer is running Windows XP and has ...