|
Oh my... Thank you! alot
SnaidiS(Semion)
|
|
|
|
|
You are very much welcome. It is nice to here a thankyou around here for a change ;0)
|
|
|
|
|
The left side of your assignment statement expects a value of type Tic_Tac_Toe , while your member function buildNewTree returns a pointer to a value of type Tic_Tac_Toe .
Software Zen: delete this;
|
|
|
|
|
ah Ok I got it thank you!
SnaidiS(Semion)
|
|
|
|
|
Do you by any chance take the same C++ class as SwatiPathania? (see post just beneath yours)
--
Torn from tomorrow's headlines
|
|
|
|
|
|
How can I make tic-tac-toe in C++? Plz give me some idea about it.....
|
|
|
|
|
no way... ask your class mate how to ask a question on a forum...
|
|
|
|
|
You can see the message just above yours it has a link to a code. try to read-I know that the code is not the best, but try to understand something
SnaidiS(Semion)
|
|
|
|
|
You just gave away work, for free!
--
Torn from tomorrow's headlines
|
|
|
|
|
How can I make an editor, using C++? I know that I'll have to use graphics also. Bt plzzzzzzzzz guide me how to do this task. I've no idea abt it. Plzzzzz tell....
|
|
|
|
|
Why don't you start here[^], build some simple programs first, then work your way up.
|
|
|
|
|
Do you want to make a environment for run statements like Mel Script in MAYA that run codes
|
|
|
|
|
Problem:
We are Using a Sony Ericsson PCMCIA card(GC89) as a modem(WLAN) in vb.net
(tablet PC)application. One of the requirement is to show
connection(GPRS/GSM) strength in the application while syncronization of
data. Default software that got installed with the card "Wireless Manager"
also has this feature.
4 solutions:
1. By calling native API exposed by sony ericsson for this card. unfortunatly API is not publically available, we are trying to contact them
2. By using "AT" commands. Every modem supports this command. The problem is we have to talk at port level. And we can't issue any command if modem(its port) is already connected to network for syncronization of data.
3. By hooking at driver directly at User Mode or Kernal Mode using NDIS.
4. Windows using "Wireless Zero Configuration" service to talk to device drivers. Problem is it can only talk if underlying connection is on iEEE 808.11b standard. So i can get wifi signal but not GRPS/GSM. WRAPI library also supporting only iEEE 808.11b
You see any of above solution has some problem. Can anybody pls help me out here.
Appreciate quick response. Thanks
|
|
|
|
|
The only approved level is by the AT commands, APIs like that only tend to be made available to people working closely with the manufacturer.
How about seeing if you can monitor any windows messages that might show what the software is doing?
Elaine
|
|
|
|
|
AT Command: any work around for port problem, how can i access the port while its connected to internet?
Well, by hacking i don't mean to look into core detail of driver. But to see only those information which are normally available in all such application like Signal Strength, Provider.. status information.
|
|
|
|
|
Hi All,
I was looking at CMenuXP, which draw the entire menu. but the problem was it doesn't draw the arrow of the popup subitems. it lets windows to draw it by itself.
is there a way to bypass it? i need to draw the arrow with my own color (for enable and disable states)
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Do you need to shape of popup item?
|
|
|
|
|
I'm having a real hard time trying to understand the bitmap structure. I have created a function which takes a HBITMAP, I convert this to a DIB so that I can examine the pixels. My code is working, but I'm sure it's wrong.
HRGN CWinRgn::CreateRgnFromFile( HBITMAP hBmp, COLORREF color )
{
BITMAP bmp = { 0 };
GetObject( hBmp, sizeof(BITMAP), &bmp );
union {
BITMAPINFO bInfo;
BYTE pQuad[sizeof(BITMAPINFO) + 0xFF * sizeof(RGBQUAD)];
};
ZeroMemory(pQuad, sizeof(pQuad));
bInfo.bmiHeader.biSize = sizeof(bInfo.bmiHeader);
HDC dc = CreateIC( "DISPLAY",NULL,NULL,NULL );
GetDIBits( dc, hBmp, 0, bmp.bmHeight, 0, &bInfo, DIB_RGB_COLORS );
LPBYTE pBits = new BYTE[ bInfo.bmiHeader.biSizeImage ];
BITMAPINFOHEADER& bih = bInfo.bmiHeader;
GetDIBits( dc, hBmp, 0, bih.biHeight, pBits, &bInfo, DIB_RGB_COLORS );
DeleteDC( dc );
for ( int y = 0; y < bih.biHeight ; y++ )
{
for ( int x = 0; x < bih.biWidth; x++ )
{
int Offset = (bih.biHeight - y) * bmp.bmWidthBytes + x * bmp.bmBitsPixel / 8;
COLORREF pixel;
switch ( bih.biBitCount )
{
case 1:
I was under the impression that bitmaps could have either 1,4,8,16,24 or 32 bits per pixel. So I created these various bitmaps to test the code. I load the bitmap with the LoadImage() api and pass to the handle to my function, yet each bitmap is either 1 or 32 bbp. Can somebody please explain to me what the hell is going on?
-- modified at 2:53 Sunday 10th September, 2006
|
|
|
|
|
You're obviously running at 32 bit. You can call LoadImage to load a DIBSection, otherwise, you will load a DDB, which is a Device Dependant Bitmap. That means, you have an image the same depth as your screen, converting it to a DIB will keep that bit depth. A DIBSection is overall a better way to deal with an image so you can both draw it to a DC, and access it's bits directly. There are DIBSection wrappers available for download on CP, that's probably the best way to go.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm using LoadImage as a quick and dirty way to get a bitmap handle. In reality this handle could come from anywhere. So what you mean is, when using LoadImage in 32bit mode, it will convert the bitmap? Maybe I should start playing with my display settings.
Christian Graus wrote: There are DIBSection wrappers available for download on CP, that's probably the best way to go.
I have found many, trouble is they are all MFC which makes it just that little harder for me to understand exactly what the code is doing.
|
|
|
|
|
From top of my head, there is a LR_CREATEDIBSECTON flag you will have to pass to LoadImage to ensure that you get a DIB back. Good thing about getting back a DIB is that bitmap has the same color resolution as contained in the bitmap file without going through the color transformations when creating a DDB compatible to screen.
|
|
|
|
|
I thought about that, but I thought if I am going to understand this at all, i need to get down to the bytes. So a created a function to load from the file directly. Now I can be absolutely certain about what sort of bitmap I am dealing with.
|
|
|
|
|
If it is a bitmap file, I suggest you to read the bits of the file using the file operations rather than GDI functions. If I remember there is a sample in sdk for this.
|
|
|
|
|
In this instance, yes it is a bitmap file. But I am creating a function which is able to go through the pixels of any of the bitmap formats. So really, I don't need a function to load from a file, but for testing purposes it is probably the best way.
|
|
|
|