|
I think you can still do this, it's just more complex. Again, look through Mike's articles, and perhaps write him an email.
Alternately you can send me a $1,000,000 USD (into my Cayman Islands account please), and I'll write it for you !
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
|
|
|
|
|
Hi guys...
How I want to convert the *.raw image data to 24 bits of *.bmp image file in WinCE environment
;);P ((
:_Rocket_:
|
|
|
|
|
first, find the specs for the .RAW format.
(i'm not sure you'll find one)
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
A spec for RAW can be found at www.wotsit.org[^]
Also http://www.xnview.com [^]does have a freeware "DOS" image converted that as a last resort you may be able to use. It also has some libraries you may be able to use.
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Here is a major question which has been bugging me for some time. I was watching a video about Doom 3 from www.nvidia.com and it showed John Carmack using some compiler. I am wondering, what compilers do professional game programmers use?
|
|
|
|
|
MASM
?
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
what is MASM? where do i get it?
|
|
|
|
|
it's an assembler.
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
Since Doom3 will be cross-platform (PC, XBox, PS2) they'll use VC7, gc++, etc.
Todd Smith
|
|
|
|
|
I don't know about VC7, I don't really see Doom 3 being written in C#. Most likely a mix of good old C++ and ASM code, prolly several different compilers depending on plateform.
C# a poor attempt at bringing C++ to the VB masses
|
|
|
|
|
ROK_RShadow wrote:
I don't know about VC7, I don't really see Doom 3 being written in C#.
What in the hell does VC7 have to do with C# ? VC = Visual C++.
ROK_RShadow wrote:
C# a poor attempt at bringing C++ to the VB masses
C# is a tool. A bad tool for writing games, but that isn't what it is for.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
|
|
|
|
|
ROK_RShadow wrote:
C# a poor attempt at bringing C++ to the VB masses
You obviously never worked with people that have to code, but are more than coders.
If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
[sighist] | [Agile Programming] [doxygen]
|
|
|
|
|
hello,
i have problem with my application ,because my application must give the handel and name in the titlebare of the windows who was active ,
but it give me only the name on the title bar of my application.
i can't find the problem can you helm me
'code'
#include<windows.h>
#include"resource.h"
#include<winuser.h>
char Buffer[256];
int CALLBACK EnumWindowsProc(HWND handel, LPARAM lparam);
HWND handel;
int CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch(Msg)
{
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_BOUTON:
EnumWindows(&EnumWindowsProc,lParam);
return TRUE;
}
return FALSE;
case WM_CLOSE:
DestroyWindow(hWnd);
return TRUE;
}
return FALSE;
}
BOOL CALLBACK EnumWindowsProc(HWND handel,LPARAM lParam)
{
if( IsWindowVisible(handel) /*|| IsIconic(hWnd)*/)
//You try to keep the condition IsIconic & check the different
{
//------- Show handle & Caption of windows---
GetWindowText(handel, Buffer, 256);
if(strlen(Buffer)== 0 )
strcat(Buffer , "Empty");
//printf("%d\t%s\n",hwnd,Buffer);
SetDlgItemText(handel,IDC_EDIT1,Buffer);
//-------------------------------------------
}
return true;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR cmdLine, int)
{
return DialogBox(hInstance,(LPCTSTR)IDD_MAIN,NULL,(DLGPROC)DlgProc);
}
'code'
|
|
|
|
|
Maybe this is what you have in mind:
BOOL CALLBACK EnumWindowsProc(HWND handel,LPARAM lParam)
{
char szMan[500];
if( IsWindowVisible(handel) )
{
GetWindowText(handel, Buffer, 256);
if(strlen(Buffer)== 0 )
strcat(Buffer , "Empty");
wsprintf(szMan, "%d\t%s\n", hwnd, Buffer);
SetDlgItemText(handel,IDC_EDIT1,szMan);
}
return true;
}
rechi
|
|
|
|
|
thanx,but you have not understand what i ask,the problem was that the application don't detect the other windows.
|
|
|
|
|
How can I lock the Time/Date change using systray or Control Panel icon ?
I don't want that any user can change it.
Thanks,
------------------------------------------------
Cómo puedo evitar que un usuario me cambie la fecha o hora del sistema desde el Panel de Control o del systray ?
Gracias
|
|
|
|
|
Presup wrote:
I don't want that any user can change it
why not?
When history comes, it always takes you by surprise.
|
|
|
|
|
Because it's an employee control application.
I want to synchronize the time/date with a server when the app starts and never change it again when I receive the employee's numbers ( by serial port ).
I will have bad performance if I synch. the time everytime I receive data.
Marcelo
Sorry my bad english, I speak spanish
|
|
|
|
|
on NT4/W2K, XP (Pro?) you can deny the right to set the system date/time to a user.
On XP it's Control Panel / Computer Management (?) / Local Security Policy / Local Policy / User Rights
(I don't have an English XP here, the names may differ...)
If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
[sighist] | [Agile Programming] [doxygen]
|
|
|
|
|
It should be on Win 95/98
I can't use policies.
Thanks
|
|
|
|
|
Hi:
I have created the following class:
class CQrgBond
{
private:
char* _cTicker;
double _fCpn;
int _nCpnFreq;
CQrgDate _dMaturityDate;
CQrgDate _dFirstCpnDate;
long _lAmountOS;
public:
CQrgBond( );
CQrgBond( char* cTicker, double fCpn, int nCpnFreq,
char* cMaturityDate, char* cFirstCpnDate,
long lAmountOS );
~CQrgBond();
}
I have created a constructor that can accept multiple arguments, but I am having troubles with creating an assignment operator with multiple arguments on the right hand side. My code doesn't work:
const CQrgBond& operator = ( { char* cTicker, double fCpn, int nCpnFreq,
char* cMaturityDate, char* cFirstCpnDate,
long lAmountOS } );
The error message is binary 'operator =' has too many parameters.
Ideally what I want to do it to have
CQrgBond m = { "Bond", 5.5, ... };
in addition to
CQrgBond m( "Bond", 5.5, ... );
Is this possible?
Any tips are appreciated.
|
|
|
|
|
No, what you have to do is
CQrgBond m = CQrgBond (....whatever);
Make sure you define a copy operator.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Anton A. Loukine wrote:
Is this possible?
Not with that class. The only time the array-style assignment syntax works is if you have a struct/class with all public members and no constructor, such as:
struct CFoo
{
int x;
char y;
};
CFoo foo = { 1, 'a' };
--Mike--
The Internet is a place where absolutely nothing happens.
-- Strong Bad
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I have an AVI file playing on a dialog box. One of our users runs large fonts under Windows XP and we're seeing a darker gray area on the back of the dialog box. It kind of looks like this:
=====
=====
=====================
=====================
...where the === is the color that doesn't match the dialog background. The AVI file itself is being painted correctly.
I create the control in my WM_INITDIALOG routines (this is all Win32...no MFC) using the following code:
<br />
hAnim = CreateAnimationCtrl(hDlg, IDC_ANIMATE);<br />
Animate_Play(hAnim, 0, -1, -1); <br />
The CreateAnimationCtrl routine I got from MSDN and is defined as:
<br />
HWND CreateAnimationCtrl(HWND hwndDlg, int nIDCtl) <br />
{ <br />
HWND hwndAnim = NULL; <br />
RECT rc; <br />
POINT pt; <br />
<br />
hwndAnim = Animate_Create(hwndDlg, IDC_ANIMATE, WS_CHILD | ACS_TRANSPARENT, ghInst); <br />
<br />
GetWindowRect(GetDlgItem(hwndDlg, nIDCtl), &rc); <br />
<br />
pt.x = rc.left; <br />
pt.y = rc.top;<br />
ScreenToClient(hwndDlg, &pt); <br />
<br />
SetWindowPos(hwndAnim, 0, pt.x, pt.y, 149, 25, <br />
SWP_NOZORDER | SWP_DRAWFRAME); <br />
<br />
Animate_Open(hwndAnim, MAKEINTRESOURCE(IDR_AVI)); <br />
ShowWindow(hwndAnim, SW_SHOW); <br />
RedrawWindow(hwndAnim, NULL, NULL, RDW_INVALIDATE | RDW_ERASE | RDW_UPDATENOW | RDW_ALLCHILDREN);<br />
<br />
return hwndAnim; <br />
} <br />
In order to create a "transparent" AVI file, I use the following in my WM_CTLCOLORSTATIC call:
<br />
hdc = (HDC)wParam;<br />
dwColor = GetSysColor(COLOR_BTNFACE);<br />
SetBkColor(hdc, dwColor); <br />
UpdateWindow(hAnim);<br />
I don't currently have the transparent flags set for the animation control, but I have and that didn't help.
I don't know what's going on. She changed to large fonts, but kept the color choices the same. We both have XP and the same machines (as well as video drivers, etc.) I don't have any other controls on the dialog such as statics, etc. Mine works fine and hers doesn't.
Any help would be greatly appreciated.
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
Hi all,
could you please download this:
http://home.tiscali.de/reichl/download/resysinfo_setup.exe[^]
and tell me if it's working or not?
I tested it on Win95/Win98/WinME/Win2k/WinXP and WinNT 5.0.
But a system information viewer must be tested on many different
system configurations before releasing it to the "user public".
Thank you
-Dominik
|
|
|
|
|