PE Format
Hi,
I'm trying to parse an executable an i want to catch just a specific section
(this section's name is .mysec)
Ok, i can find my section inside this executable, i can parse this
executable's header BUT i can get the RAW data (the data inside this
specific section). Does anybody here knows how can i do it ? Any Sample ?
Thanks in advance,
Victor Tag: How can I capture DirectX game screen? Tag: 246932
BN_PUSHED !!
hello
well im a lil confused here. i cant get the BN_PUSHED
hooked up.
BEGIN_MSG_MAP(CBarreWindow)
MESSAGE_HANDLER(WM_COMMAND, OnCommand)
END_MSG_MAP()
LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
WORD hi = HIWORD(wParam);
WORD lo = LOWORD(wParam);
if( hi == BN_PUSHED)
if( lo == IDC_BUTTON_LEFT )
//do something with pushed button
return 0;
}
thanks for your help if any! Tag: How can I capture DirectX game screen? Tag: 246927
Debugger confusing source file breakpoints
Hi There,
Somehow the visual studio debugger is getting confused about which
source files belong to which object files. For example, I'll set a
breakpoint on line 92 in once source file, but the debugger will break
execution on line 92 in another source file.
I've tried doing a clean build and I've tried remaking my project
files. Does anyone have information on how the VC debugger links source
files to object files?
Thank you. Tag: How can I capture DirectX game screen? Tag: 246915
number of elements
I have a class, MyClass which contains:
typedef struct MyStruct
{
MyType * pmyTypes[14];
MyStruct()
{
pmyTypes = NULL;
}
} MyStruct;
I want to at compile time create an array of the same number of elements.
I've tried:
sizeof(MyClass::MyStruct.pmyTypes) / sizeof(MyClass::MyStruct.pmyTypes[0])
but I get a compiler error:
s:\mytest.h(155) : error C2143: syntax error : missing ')' before '.'
and I notice that when typing the '.' I don't get the list of elements in the
structure, even though I have included the file with the class definition
before I do this. Any idea where I'm going wrong this time? :-) Thanks! Tag: How can I capture DirectX game screen? Tag: 246909
Data between dialogs
Hello. I am programming an application in which a main dialog needs to
know the data in other dialogs (opened by clicking buttons in the main
dialog). There are a lot of CEdit's and doing that via Class Wizard
(with member variables for each dialog class) is quite tiring.
If there were just one dialog I would get data in a loop:
void MainDialog::f() {
...
for(int id = IDC_FIRSTID; id<=IDC_LASTID; id++)
this->GetDlgItemText(id,str);
...
}
But the CEdit's are in other dialogs, so their data is lost when you
close them. That is, I can't do the following:
void MainDialog::f() {
...
for(int id = IDC_FIRST_ID_DLG1; id<=IDC_LAST_ID_DLG1; id++)
dlg1.GetDlgItemText(id,str);
...
}
How can I do that without using member variables?
Thanks. Tag: How can I capture DirectX game screen? Tag: 246901
IDL files
Hi,
I need to parse the interface body in .IDL file to extract the function
names and the corresponding parameters of the function. I was wondering if
there is a tool available to do that?
Thanks,
Poonam Tag: How can I capture DirectX game screen? Tag: 246882
How can I terminate a Dialog object?
Hey,All!
I am now trying to terminate a dialog object,but I do not know how I can
terminate it, can anybody tell me how many method I can close it?
Thanks in advance! Tag: How can I capture DirectX game screen? Tag: 246881
SetUnhandledExceptionFilter and LoadLibrary problem
I want to use SetUnhandledExceptionFilter to get all unhandled
exception(include C++ exception)
in my program. But if I call LoadLibrary to load a dll(not a system dll)
in a thread, the thread's C++ exception can't be handled. If I call
SetUnhandledExceptionFilter once more, all can be done.
I also have debug the function LoadLibrary. I found that when I call
LoadLibrary
to load my library before call dllmain, the SetUnhandledExceptionFilter was
called. Is theare any way to solve it? Thank you! Tag: How can I capture DirectX game screen? Tag: 246878
C2440 error
I have a definition:
DM_ComponentStatusType m_aeComponentStatusTypes[14];
in which DM_ComponentStatusType is a C++ structure. I'm trying to fill
another structure in which one of the elements is defined as:
DM_ComponentStatusType* pStatusTypes[14];
When I code this line:
psMaintenanceComponentEvent->pStatusTypes =
&theApp.m_aeComponentStatusTypes;
I get the following compile error that I can't figure out. Can anyone tell
me what I'm doing wrong (and why :-) Thanks!
sralogger.cpp(92) : error C2440: '=' : cannot convert from
'DM_ComponentStatusType (*)[14]' to 'DM_ComponentStatusType *[14]'
There are no conversions to array types, although there are
conversions to references or pointers to arrays Tag: How can I capture DirectX game screen? Tag: 246875
ATL > CWindowImpl
hello
[ ATL DLL project using VC6 ]
I need to use a CWindowImpl base class and then
create a window based on a dialog resource in a dll.
first of all, is it ok to create WS_POPUP windows
inside a ATL DLL ?
and last , is there a way to create a window using
a dialog resource using CWindowImpl :: Create ?
thanks a lot Tag: How can I capture DirectX game screen? Tag: 246872
New Section Creation
Hi, i'm trying to creat a new section in a .obj file.
I'm using the pragma directive but my problem is: I can't create a function
inside my new section. why ? I can't put functions inside my new section ?
Just data like variables ? or my function must be static ?
Thanks in advance,
Victor Tag: How can I capture DirectX game screen? Tag: 246860
Flat ScrollBar ActiveX
hi
The flat scroll bar has 2 button like ends
with arrows and a slider button like somewhere
in the middle. Ok i need to know if there's a way
to find out the width of the "arrow" end buttons ?
I know that im actualy looking at a bitmap that
looks like buttons but im asking anyways =/
thanks Tag: How can I capture DirectX game screen? Tag: 246855
Suppress warning message C4786
Is there any way to suppress warning message C4786 in VC++ 6.0? This is
the message that says "'a very long name generated by a template' :
identifier was truncated to '255' characters in the debug information
I'm using STL and I'm getting hundreds of these, which makes it hard to
find warnings that I probably could (and should) do something about.
I've tried
#pragma warning( disable : 4786 )
and
#pragma warning( disable : C4786 )
and neither has any affect.
Norm
--
--
To reply, change domain to an adult feline. Tag: How can I capture DirectX game screen? Tag: 246851
Administrating Shell Folders
Using Visual C++ v 7.1.3088 on Windows XP SP2
Microsoft go on an on about not logging on as an administrator for everyday tasks.
Fair enough. But why do they not provide a simple mechanism to allow a limited user to
perform limited administrative tasks upon their own (and only their own) profile?
For example, MSCONFIG doesn't work at all unless you are an administrator. But if you
run MSCONFIG as an administrator, you only see the administrator's startups, and not
those of the actual current user (the user who is currently logged on). In effect,
there is no way to manage a limited user's startups, only the administrator's.
I am facing a very similar dilemma in one of my own MFC programs. The program requires
administrative rights, but it also needs to work with the actual user's shell folders,
not just the shell folders belonging solely to the administrator who is running the
program. Also, where the current user IS an administrator, he requires access to ALL
other users shell folders in addition to his own.
My question in short: is there a simple way to establish a specific user's shell
folders in the same way that the current user's shell folders can be established via
successive calls to SHGetFolderLocation() and SHGetPathFromIDList().
Thanks for any assistance. Tag: How can I capture DirectX game screen? Tag: 246850
Visual C++.NET 2003 built DLL, Win98 can't run.
Hello,
I have build an Office Addin dll using VC.NET 2003 under WinXP. The dll
is running fine in Office at Win2k, XP and NT but could not be loaded into
Office at Win98 and WinME. (it is a native C++ COM DLL, no .NET CLR
dependencies. Also, the Office is the same version across platforms.)
I think there is something missing in my setting to make it incompatible
with Win98.
Here what I did
I defined these in my stdafx.h
#define _WIN32_WINDOWS 0x0400
#define WINVER 0x0400
and in my setting, preprocessor, I do the same thing, added in the
WIN32
_NDEBUG
_WINDOWS
_USRDLL
_WTL_NO_WTYPES
_WIN32_WINDOWS 0x0400
WINVER 0x0400
when I compile, there is no any errors. (supposingly if the program can not
be run on (_WIN32_WINDOWS 0x0400
WINVER 0x0400) which is Win95 and above, it will not compile?)
My Runtime LIbrary is /MT and not MT dll.
I am not using any UNICODE but only MBCS. (no UNICODE or _UNICODE defined)
Btw, my codes using #import libid directly(which according to source, only
avail in platform SDK. )Not sure is it because of that?
I am using WTL 7.0. Any issues on Win98?
Any clues?
thanks Tag: How can I capture DirectX game screen? Tag: 246848
Difference between template specialization and partial specializat
Hi,
What exactly qualifies the difference between template specialization
and partial template specialization?
From: http://www.gotw.ca/gotw/049.htm
<quote>
The first template is the primary class template:
template<class T1, class T2, int I>
class A { }; // #1
We can specialize this for the case when T2 is a T1*:
template<class T, int I>
class A<T, T*, I> { }; // #2
Or for the case when T1 is any pointer:
template<class T1, class T2, int I>
class A<T1*, T2, I> { }; // #3
Or for the case when T1 is int and T2 is any pointer and I is 5:
template<class T>
class A<int, T*, 5> { }; // #4
Or for the case when T2 is any pointer:
template<class T1, class T2, int I>
class A<T1, T2*, I> { }; // #5
Declarations 2 to 5 declare partial specializations of the primary template.
</quote>
I presume "partial specialization" to occur only when some members of the
template list are specialized, as in say #2 or #5.
Then how does the case in #4 be "partial specialization", since all of them
are specialized?
TIA,
Sucharit Tag: How can I capture DirectX game screen? Tag: 246845
Platform dependent problems
I have an app developed under XP but should run under 98.
However under 98 I am getting "Unhandled exception 0xC00000005
Access Violation" on executing one command.
It is happening in my DLL which does various utility operations on
wide strings - which arouses a suspicion.
The program is not UNICODE and uses WCHAR explicitly (with wchar_t
not defined as an integral type).
I *thought* I had been careful only to use wide string operations
which exist in win98. Is there a quick way of telling if I haven't?
Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm Tag: How can I capture DirectX game screen? Tag: 246842
Link with an EXE with Project Dependencies
Hi,
Iâ??m trying to link a DLL with an EXE that exports some symbols. If I use the
Project Dependencies tool, it does not work. But if I add it as an input
library, it work. Is it a bug or am I missing something?
Thanks Tag: How can I capture DirectX game screen? Tag: 246810
Command line compile--how to set dynamic link?
Please help! (Hopefully this is the right place for this post)
I want to use dynamical link to build a MFC project (VC7) . I know how to
do it in visual studio menu. (go to project->settings->general and select
"Using MFC as a Shared dll" ). But I don't know how to do it from command
line compiling
What option I should add from command line ?
Thank you so much Tag: How can I capture DirectX game screen? Tag: 246803
Pass a file like an argument in a function
Is possible pass a file like an argument in a function?
Suppose I have a DCOM in a server. And I have a client
that request a file to the DCOM server, and the server
must give the file to the client.
Is possible have a function that returns or pass the file
like an argument?
Tks,
Rui Tag: How can I capture DirectX game screen? Tag: 246795
the libraryes needed for Unicode applications in a machine without visual c
Hi,
I have been using Install Shield to make install packages with my Visual C
programs. Now I have a Unicode program, and the program does not work on the
2nd machine that has not Visual C installed. Are there any extra lib or dlls
needed for Unicode applications that Install Shield does not detect itself?
best
Behzad Tag: How can I capture DirectX game screen? Tag: 246793
Is this version SDK fit for me?
My current developing enviroment is : win2k+sp4 + VC6+sp5 + IE6 (install
before VC6).
And i need to update SDK, and found one one MS web site:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-
A93E-40C0EC4F68E5&displaylang=en
Would you please give some advice?
Best Regards!
youhua wang Tag: How can I capture DirectX game screen? Tag: 246787
Allocate large memory
I'm not able to allocate more than 900MB with GlobalAlloc or HeapAlloc
(VC++ 6.0, Win2K or WinXP). Even if I try to allocate 450MB twice it fails.
It seems the limit is about 850 MB even if the PC has 2GB RAM. Tag: How can I capture DirectX game screen? Tag: 246776
How to solve compile error C2065 like this?
I down a demo project from codeproject, but failed to pass compilation.
Here is some code:
<code>
int retId = TrackPopupMenu( hPopup , TPM_LEFTALIGN | TPM_LEFTBUTTON |
TPM_RETURNCMD |TPM_HORNEGANIMATION
, pt.x , pt.y , 0 , this -> m_hWnd , NULL );
... ...
NOTIFYICONDATA tnd;
switch (message)
{
case NIM_ADD:
case NIM_MODIFY:
tnd.dwState = NIS_HIDDEN; //here compile failed !
tnd.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
break;
case NIM_DELETE:
tnd.uFlags = 0;
break;
}
</code>
And some error message:
MFConfigurationDlg.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFConfigurationDlg.cpp(362) :
error C2065: 'TPM_HORNEGANIMATION' : undeclared identifier
MFDeskTopHelper.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2039: 'dwState' : is not a member of '_NOTIFYICONDATAA'
d:\program files\microsoft visual
studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2065: 'NIS_HIDDEN' : undeclared identifier
My developing enviroment: win2k+sp4 + VC6+sp5 + IE6 (install before VC6).
Is that my SDK need updated ?
Your Sincerely!
youhua wang Tag: How can I capture DirectX game screen? Tag: 246770
OpenProcess returns 0x00000000
Using Spy++ to get process ID, is it process handle? Is the number in
hex-decimal format?
Why OpenProcess() on the ID returning 0x00000000?
Another question not related is that some a win32 API call returns
0xccccccc? Does such a retuned value mean anything in windows
programming/debugging? Tag: How can I capture DirectX game screen? Tag: 246768
How can I make my programe running ahead?
Hello,All:
I am now getting in problem with a question that I cannot show my CDialog
object with function DoModal(), how come did I call the function failed?
I traced the function DoModal(), and found it failed at a
call-CreateDialogIndirect() function.
Is there anybody can tell me how I can deal with it?
Thanks in advance! Tag: How can I capture DirectX game screen? Tag: 246767
stack around the variable corrupted
Hi,
I ran into a problem that I never had before. I invoked a routine in my
program where it said "Stack around the variable "a" was corrupted"
Since I never had this before, don't know how to solve this error!!!
Is it a bug for .NET 2002? did not seem to go away with .NET 2003... What
happened?
Thanks
Jack Tag: How can I capture DirectX game screen? Tag: 246761
Trying to resolve "Internal Compiler Error" Conflict
Hi,
I have eventually found out the reason why some "Internal Compiler errors"
occurred in the program I've downloaded from the public domain, was that the
programmer had used the "Friend" operators after "using namespace std", so
collapsed during compilation. I commented out that part but I couldn't pin
down the other errors that were caused by "foreach(...)" and the "string"
identifiers all over the places. Do I definitely have to substitute all
"strings" identifiers by "char *" or that can be resolved somehow or
something that can be used in lieu of the "std" namespace that leads to a
successful compilation?
Thanks
Jack Tag: How can I capture DirectX game screen? Tag: 246760
Writing Installers
Hello
I need to write an installer that would 'unpack' and install a file in a
pre-defined directory and an executable file that itself is an installer and
that file would start installation also. Here is what I mean:
FileX.exe contains FileY.exe and FileZ.some_extentsion
User runs FileX.exe and FileY.exe starts installation and after it's done
FileZ.some_extension gets copied in some othe dierectory. Can this be done
using VC++ 2005 Express Beta? Thank you.
Victor. Tag: How can I capture DirectX game screen? Tag: 246752
GIF question
hey all,
i use ImageSource (www.smalleranimals.com) so i can read, and resize JPG's
in my app, which i would recommend 100% for anyone looking for the same.
but they do not work with GIF format, i believe because of the whole patent
issue. what i am looking for then, is a library i can use that reads GIF
files. all i need to do is open GIF files. heck, if i can open them into
RGB format, then i can still use ImageSource to do the rest, resize, add
transparencies etc.
so if anyone knows of a decent library, please let me know.
thanks!
daniel Tag: How can I capture DirectX game screen? Tag: 246751
dynamic array
Hello,
(Visual Studio 6.0 - C++ : Console win32 application).
Can I declare an array which I don't know it's length on first time,
but I want to reference it as an array (not linked table with pre & next).
i.e :
double myLongArray[1000]
...
and suppose somewhere in the code - the size of myLongArray is 1002 -
can I change its size on runtime ?
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246742
MDI system menu issue
Hello
I have an issue with MDI child windows - they work fine apart from the fact
that when there is only one child, and it is maximized, it doesn't get a
system menu (i.e. minimize, restore, close) in the top right, and it doesn't
get one on the left either. However, when I create another one, they appear.
But when I create a third, I get *two* system menus on the right and *two*
on the left, one next to the other!
Any ideas what's going wrong? Tag: How can I capture DirectX game screen? Tag: 246741
Convert string to number
Hello,
In console application (Visual C++ 6.0)
How can I convert string to number ?
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246732
do strcat in VC console application
Hello,
I am trying to put 2 strings together into one
(i.e string1 is "ab", and string2 is "bc" the result is "abbc").
In Visual C++ 6.0 - Console application :
How can I do that ?
Need sample code, please.
(I have tried using the function strcat - but compiler doesn't know this
function)
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246731
help in this string concatenation
Hi,
I am new to programming. I am trying to implement string concatenation. I
use VC++. What's wrong with the following program?
----
#include "stdafx.h"
int main(int argc, char* argv[])
{
char *s = "i love you";
char *t = "more than anything";
while (*s != '\0')
s++;
while (*s++ = *t++)
;
printf("%s\n", s);
return 0;
}
---
it always gives me segmentation fault.
Could anyone help me out?
Thanks a lot,
krm Tag: How can I capture DirectX game screen? Tag: 246730
read elements from file
Hello,
In console application :
Suppose I have a line in the file, that looks like :
a b c 123 aa bb cc
Can I read from the file,
that each single read, read each element.
(I mean : the first read will read "a", second will read "b", third will
read "c", and so on "123", "aa", "bb", "cc" ...)
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246729
printf with format
Hello,
In console application (Visual C++ 6.0)
How can I printf with format ?
Need sample, please.
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246728
handling text files
Hello,
In Microsoft Visual C++ 6.0 :
(Console Application).
I want to read and write from/to text file.
How can I do that ?
Need sample code please.
Thanks :) Tag: How can I capture DirectX game screen? Tag: 246727
Binary Compatibility Question
We have an application that was written using VS6. It uses a number of DLL
type extensions and we need to write a new extension. We no longer support
VS 6 in our development lab and would like to know if a DLL (written in "C")
and built in VS.NET 2003 will be compatible with the VS application.
Thanks,
Sid.
--
Sid Price's Software Tools.
http://www.Softtools.com Tag: How can I capture DirectX game screen? Tag: 246704
dynamic_cast is shite!
dynamic_cast doesn't return the correct values: e.g. in my project I have a
lot of classes, say A, B, C, D - D being the most derived, A being base - if
I put printf(this) in the constructors of them they all get different
values, e.g.
A will be 0x12fec0,
B will be 0x12fec4,
C will be 0x12fec8,
D will be 0x12fecc, ..etc.
I thought this was supposed to happen, but if I have an A* called "pa"
(knowing myself that it is also a D*)
if I do
void test(A* pa)
{
D* pd = dynamic_cast<D*>(pa);
// then d ends up as 0x12fec0, NOT 0x12fecc as I was hoping!
}
I tried to build a test project to demonstrate but in that all the
constructors printed the same values! Help!
And yes I have got multiple inheritance, I have also got virtual
inheritance. Tag: How can I capture DirectX game screen? Tag: 246698
GetFileVersionInfo()
I am trying to get various information about the version of a file in order
to determine that it is the correct file. I have one working implementation,
but I also need to generalize the code a bit in order to use it in a related
project.
The generalized code works exactly the same way as the non-generalized code
with a couple exceptions, but I am running into an error with the
GetFileVersionInfo().
Here's a sample:
INT Validate(std::string _file, lpData _info)
{
LPVOID Data;
DWORD dwLength;
DWORD dwEmpty;
dwLength = GetFileVersionInfoSize(_file.c_str(),&dwEmpty);
if (!dwLength) return -1;
Data = (LPVOID) malloc(dwLength+1);
if (!Data) return -2;
memset(Data,0,dwLength+1);
if (!GetFileVersionInfo(_file.c_str(),NULL,dwLength,&Data))
{
free(Data);
return -3;
}
...
}
The lpData is a structure containing the information I want to verify about
the file. My problem is that the pointer is no longer valid after I call the
GetFileVersionInfo(). I checked at run-time by watching the pointers - the
'Data' and '_info' pointers are valid before I call it, but then when it
returns (it does not go into the body of the if-block), the values are
invalid and cause a crash. E.g. the following:
Before After
Valid Invalid
_info = 0x0012f2b4 --> 0x00050000
Data = 0x00fd7be0 --> 0x0034037c
As I said before, I have another version that works just fine. Am I doing
something wrong? I pretty much copy-pasted the code.
TIA, Tag: How can I capture DirectX game screen? Tag: 246694
Reading the system time
Hi,
Is there a way to read the time so that:
1. If the PC is connected to the Windows Server (NT/2000 or 2003) then read
the server time.
2. If the PC is a thin client and connected to the server through the Citrix
Server then read the server time.
3. If the PC is NOT connected to the Windows Server (NT/2000 or 2003) then
read the local time.
Thanks.
Regards,
Sandford Tag: How can I capture DirectX game screen? Tag: 246677
Linking error when using multiple forms and #include<afxinet.h>
Hello!
I am developping a Visual C++ .NET multiple forms application, which
uses FTP connection. When I use more than one form, and include the
<afxinet.h> library (necessary for FTP connection), the linker errors
occur:
error LNK2005: "void * __cdecl operator new(unsigned
int)"(??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
already defined in LIBCMTD.lib(dbgdel.obj)
fatal error LNK1169: one or more multiply defined symbols found
In order to be clearer, I'll tell the simple steps to create the
error: I create a Windows Form C++ .NET application; add a new form
(add element->new form); simply include the <afxinet.h> in the Form1.
Ok, if you try to run the application, it will. Now, just close the
Visual Studio, open everything again, do a NEW compilation, and try to
run. (!!!) That's the error! That's why I think it could be a bug
of the Visual Studio...
Thus, I can just work with FTP connection and only ONE form. We tried
the MSDN help, that tells to ignore the library (LIBCMTD.lib), but this
causes other link errors. We tried everything we could.
If somebody could help me anyway I thank very much. Tag: How can I capture DirectX game screen? Tag: 246674
Need help in Including/converting C files in C++ project
Hello,
I've a few C files in hand containing functions that can be used to
convert a string into MD5 hash string. When I tried to include the c sources
and header files to the project, a lot of errors and warnings comes out.
The c files can be compiled and run successfully when placed in a
standalone project. (with "Project Properties"->"Advanced"->"Compile to" set
to "C executables" of course, and compile option "-DMD=5" to specify the MD
marco)
So I think the sources are Okay.
Would anyone please give me a pointer on how to "include the files in
C++ project"/"convert these C files to C++ sources"?
A second question is: If I included the files, would it be right to just
specify the "-DMD=5" in the project properties, or I should specify it
elsewhere?
Thanks a lot.
Regards,
Lau Lei Cheong
--
If you want to mail to me, please replace all instance of "e" to "a" in my
email address. Thank you.
Sorry for any inconvience caused, but there's many spam-mailers. Tag: How can I capture DirectX game screen? Tag: 246653
switching stdout to a file
/* The MSDN Library 10/2001 gives this example for the use of dup()/dup2()
to make "stdout" refer to a program-determined file and then restores it
NOTE: All error checking deleted for "clarity" Also, the type and
arguments
of main are not proper either (that's the way it was there) */
#include <io.h>
#include <stdlib.h>
#include <stdio.h>
void main( void )
{
int old;
FILE *new;
old = _dup( 1 ); /* "old" now refers to "stdout" */
/* Note: file handle 1 == "stdout" */
new = fopen( "data", "w" );
/* stdout now refers to file "data" */
_dup2( _fileno( new ), 1 );
puts( "This goes to file 'data'\r\n" );
fclose( new );
/* Restore original stdout */
_dup2( old, 1 );
}
/* BUT I'd like to know what's wrong with using this method instead */
void main(void)
{
FILE *savestdout = stdout;
stdout = fopen( "data" , "w" );
...
fclose( stdout );
stdout = savestdout;
}
TIA
Norm Tag: How can I capture DirectX game screen? Tag: 246649
MIDI question
When I play a MIDI file with Windowsmedia player, and at the same time
record on "stereomixer" with Audio Recorder, it records the audio of the
midi to wav. When I then play the wav it sounds significatly worse than the
original Midi. Any ideas why? It might be a problem of my sound card.
thanks Tag: How can I capture DirectX game screen? Tag: 246645
EARN $$$ SEARCHING THE NET IN GOOGLE(READ BODY)
You want to gain much money? So do I!join with me then! That is thus,there is sites that pay for each research in google. This consists of making 40 research per $0,80 day and receiving cent. Or either, to the end of the month they make 25. If to join a friend, and if it to make the 40 research per day and the 25$ to the end of the month. Raisins to gain 50$ (25$ yours and 25$ of your friend). 1º - They have to arrange a paypal account, that is gratuitous, for where the owners of the sites order the money day 14 of each month. For this they visit http://www.paypal.com, sign up, personal account, are enrolled and they do not need for your credit card, becouse having account then gives to make the transference to your account (when to appear, this cancel and thats it ') I currently use 2 sites, I go to leave the sites here but they make the max to obtain $. After confirming the account in the paypal here, they are register: - http://netbux.org/?r=68890 (opens the site, and in low it has to register, are register and such, in the paypal email, put the mail that you have registered before in www.paypal.com. After making signup, go to have one link similar to the from above one but to different numbers. They use this link to make the research. They can control the $ has accumulated in low in button "Stats".) - http://pay-pup.com/?r=36073 (Same procedures from above) LETS GO TO MAKE SOME $$$!
Follow these easy steps:
1) Sign up and register here:http://netbux.org/?r=68890
2) Login and begin searching on Google or your prefered search engine!
3) Do this everyday and tell your friends to make even more money!
Do the same steps for pay-pup
http://pay-pup.com/?r=36073
Note: Netbux works same way put you can earn 80 cents a day insted of $1.00
How Pay-Pup Works
At Pay-Pup, we pay our members to search the internet. There are no strings or gimmicks. You simply register with Pay-Pup and you earn money instantly from your very first search. You will earn $0.02 for every search you make for up to 50 paid searches per day, therefore the maximum pay per day for your individual searching is $1.00. Note: A paid search is one that is unique to your other searches, meaning that you will not get paid for searching the same thing twice.
To make things even better, you will also earn $0.02 for every search that your referrals make for up to 50 searches a day as well! Therefore the maximum pay per day for each referral is $1.00. The more referrals, the more money! Upon registration, you will be given a unique referral url (also located in your 'stats' area) that you can give out to your friends, post it on your website, blog, etc. We also have some images that you can use to help advertise online with.
An amazing feature with the referral program is that if someone comes here by way of your referral url, their ip address is recorded and attached to your account so if they close the browser, disconnect (only static ip's), turn off their computer (only static ip's), you will still get credit if they ever return! You only get paid for one level of referrals but you may already see an enormous earning opportunity here.
There really isn't much to it. You search the net and you earn money. You refer your friends and you'll earn even more money. Your member statistics are updated instantly so you can always stay on top of your earned monies, referrals, searches, etc. We pay you at the beginning of every month via PayPal once you have reached $50 or more. Tag: How can I capture DirectX game screen? Tag: 246634
EARN $$$ SEARCHING THE NET IN GOOGLE(READ BODY)
You want to gain much money? So do I!join with me then! That is thus,there is sites that pay for each research in google. This consists of making 40 research per $0,80 day and receiving cent. Or either, to the end of the month they make 25. If to join a friend, and if it to make the 40 research per day and the 25$ to the end of the month. Raisins to gain 50$ (25$ yours and 25$ of your friend). 1º - They have to arrange a paypal account, that is gratuitous, for where the owners of the sites order the money day 14 of each month. For this they visit http://www.paypal.com, sign up, personal account, are enrolled and they do not need for your credit card, becouse having account then gives to make the transference to your account (when to appear, this cancel and thats it ') I currently use 2 sites, I go to leave the sites here but they make the max to obtain $. After confirming the account in the paypal here, they are register: - http://netbux.org/?r=68890 (opens the site, and in low it has to register, are register and such, in the paypal email, put the mail that you have registered before in www.paypal.com. After making signup, go to have one link similar to the from above one but to different numbers. They use this link to make the research. They can control the $ has accumulated in low in button "Stats".) - http://pay-pup.com/?r=36073 (Same procedures from above) LETS GO TO MAKE SOME $$$!
Follow these easy steps:
1) Sign up and register here:http://netbux.org/?r=68890
2) Login and begin searching on Google or your prefered search engine!
3) Do this everyday and tell your friends to make even more money!
Do the same steps for pay-pup
http://pay-pup.com/?r=36073
Note: Netbux works same way put you can earn 80 cents a day insted of $1.00
How Pay-Pup Works
At Pay-Pup, we pay our members to search the internet. There are no strings or gimmicks. You simply register with Pay-Pup and you earn money instantly from your very first search. You will earn $0.02 for every search you make for up to 50 paid searches per day, therefore the maximum pay per day for your individual searching is $1.00. Note: A paid search is one that is unique to your other searches, meaning that you will not get paid for searching the same thing twice.
To make things even better, you will also earn $0.02 for every search that your referrals make for up to 50 searches a day as well! Therefore the maximum pay per day for each referral is $1.00. The more referrals, the more money! Upon registration, you will be given a unique referral url (also located in your 'stats' area) that you can give out to your friends, post it on your website, blog, etc. We also have some images that you can use to help advertise online with.
An amazing feature with the referral program is that if someone comes here by way of your referral url, their ip address is recorded and attached to your account so if they close the browser, disconnect (only static ip's), turn off their computer (only static ip's), you will still get credit if they ever return! You only get paid for one level of referrals but you may already see an enormous earning opportunity here.
There really isn't much to it. You search the net and you earn money. You refer your friends and you'll earn even more money. Your member statistics are updated instantly so you can always stay on top of your earned monies, referrals, searches, etc. We pay you at the beginning of every month via PayPal once you have reached $50 or more. Tag: How can I capture DirectX game screen? Tag: 246633
Hi all,
I'm trying to capture a game screen that made by DirectX.