|
Optimize for size, not for speed
Now THAT'S funny.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I couldn't run it successfully!
It said missing file "DoMyHomeWorkForMe.Dll".
Can someone mail it to me please?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
I believe you can download it from this URL:
ftp://ftp.ForAllYouLazyBoneHeads.com/Downloads/DoMyHomeWorkForMe.Dll
(OK its not quite as good as the other replies, but it just shows where my affiliation lies on this one.)
:-P
"When I left you I was but the learner, now I am the Master" - Darth Vader
|
|
|
|
|
|
ok I've downloaded it.
Now what?
tell me fasssttt!
I gotta submit it tomorrow
Should I copy it to my windows folder
if so, can someone sent me a file that will do this copying for me. I dont have time.I ambusy posting another post asking for someone todo me a program to add three 2x2 matices
Nish
p.s. now we have absolutely over-used this joke and its gettin damp LOL
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
hi all,
i am currently writing a code the capture bitmap from quickcam start from video for windows. i am able to get the a frame back from the video stream with capSetCallbackOnFrame macro. however, i want to know how i can add the bitmap header from the raw video data?
anyone can help? thanks in advance!
thanks,
jim
|
|
|
|
|
take a look at
http://www.inversereality.org/tutorials/graphics%20programming/BitmapLoading.html
Nish
Sonork ID 100.9786 voidmain
|
|
|
|
|
hi,
i'm trying to get a icon displayed on a CButton, looking though the help etc i got it working useing
HICON m_hIcon;
m_hIcon = AfxGetApp()->LoadIcon(IDI_ICON_DIR);
if (NULL != m_hIcon) {
m_browse.SetIcon(m_hIcon);
}
but the problem is it steches it to the whole button, and i want it to stay the size of the icon, 16 x 16, any idea?
thanks in advane for any help.
muz.
|
|
|
|
|
|
Does any one know of an easy way to maintain seperate Visual Studio "include file profiles" and quickly switch between them? (Something like a user defined "Platform"?.
I use VS to develop both Win32/MFC apps and MS-DOS 16 bit apps and they have completely different include/lib/prog directory locations.
At the moment I have to run a batch file to modify the VS registry entries every time I switch from Win to DOS development? There has to be a better way!
gjr
|
|
|
|
|
You can make a batch file that sets your INCLUDE and LIB paths, then runs msdev with the /USEENV switch. That makes the IDE use the environment variables instead of the directores set in the Options.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
Or, you could write a Add-in to modify the registry entries.
|
|
|
|
|
Michael
Many thanks.
This is much more flexible than my registry hacks.
It works a treat as I use LNKs to run different projects in any case.
Just goes to show one should always check out a program's command line options before complaining about lack of flexibility.
By the way, does anyone know if VS .NET is going to be more flexible in handling project specific settings??
Perhaps even allowing you to define editor color settings for ASM files??
Define a color for virtual spaces??
(The whole VS IDE and editor seems to be several generations behind such tools as Ed for Windows and Codewright in these areas.)
Gary
|
|
|
|
|
I am have just started to teach myself about how to automate Office etc. I have found some knowledge base articles and am working my way throught them. Presently I am looking at Q179706 which talks about automatind Excel. About 30 or so rows into the sample code in the article is the following code snippet
//Format A1:D1 as bold, vertical alignment = centre
range = sheet.GetRange(COleVariant("A1"), COleVariant("D1"));
font = range.GetFont();
font.SetBold(covTrue);
range.SetVerticalAlignment(COleVariant((short) -4108)); //xlVAlignCentre = -4108
range is of type Range and sheet of type _Worksheet
My question is this, how am I supposed to know xlVAlignCentre = -4108? I have searched files on my pc and MSDN for a definition or reference to where it is declared but turned up zip. I have found references to xlvAlignBottom etc on MSDN but nothing to tell me where they are stored or what their value is.
Can anybody help?
Thanks in advance
Richard Ellis
|
|
|
|
|
Neither the SDK or MFC contain that variable name, so I'd suggest that M$ have kindly let us know the hardcoded value of an internally used variable.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Hello, the codegurus around the world.;)
MSFT has some reference of this kind of value.
I remembered that I downloaded some file.
VB has some good example of these values definition.
Try to find Automation sample by VB.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Thanks for the prompt responses Christian and Masaaki
I had feared as Christian suggested but Masaaki's post got me to looking further. I eventually came across Q189265 which listed some Microsoft Graph constants.
Then it said "you can see the constants available with Microsoft Graph by using the OLE - Com Viewer that is available with VC++ in the Platform SDK."
So I did and after a bit of searching I found the constants I was after.
Thanks again for the suggestions
Richard Ellis
|
|
|
|
|
I am a Visual C++ developer and I have been given a project for a hand held device using a National Geode x86 family processor. I have downloaded the embedded Visual C++ evaluation edition. I am able to write an app for CE and emulate it on the CE emulator provided, but for the hand held device do I need to build a version of CE using Platform Builder? I also see Windows CE Toolkit online, what is this? Please help.
|
|
|
|
|
I'm making a program with API (not MFC), and I know how to make a window quite well, but for some reason, more than one is difficult.
I can CreateWindow() more than one window in the Main function, but when I try to do ShowWindow() one of those windows in a Window Procedure, it says the handle of the window Im trying to show is undeclared. And I don't think I can make it global.
How do I make more than one window, and then show or hide them as I please? Any help would be appreciated, thanks =) Dave
|
|
|
|
|
I have been writing a set of classes to create windows dynamically using API, and I found that I had trouble with the Window classes until I removed code to check if the class was already registered. Could you post an example of your code and I'd be glad to try and help more.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Sure, here's some code..
This is MAIN.
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
// define variables
static TCHAR MainClass[] = "GRE",TestClass[]="Test";
static HWND wndMain,wndTest;
MSG msg;
WNDCLASS wndclass,testclass;
strcat(AboutPacer,AboutPacer2);
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor (NULL, IDC_ARROW);
wndclass.hbrBackground = (HBRUSH) GetStockObject (LTGRAY_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = MainClass;
testclass.style = CS_HREDRAW | CS_VREDRAW;
testclass.lpfnWndProc = WndProc;
testclass.cbClsExtra = 0;
testclass.cbWndExtra = 0;
testclass.hInstance = hInstance;
testclass.hIcon = LoadIcon (NULL, IDI_APPLICATION);
testclass.hCursor = LoadCursor (NULL, IDC_ARROW);
testclass.hbrBackground = (HBRUSH) GetStockObject (LTGRAY_BRUSH);
testclass.lpszMenuName = NULL;
testclass.lpszClassName = TestClass;
if(!RegisterClass (&wndclass))
{
MessageBox (NULL, "This program requires Windows NT.", MainClass, MB_ICONERROR);
return 0;
}
if(!RegisterClass (&testclass))
{
MessageBox (NULL, "This program requires Windows NT.", TestClass, MB_ICONERROR);
return 0;
}
//Create all windows
wndMain = CreateWindow (MainClass, "GMAT/GRE INTRODUCTION", WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, 80, 80, 650, 450, NULL, NULL, hInstance, NULL);
wndTest = CreateWindow (TestClass, "Test", WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, 80, 80, 650, 450, NULL, NULL, hInstance, NULL);
ShowWindow(wndMain, SW_SHOWNORMAL);
UpdateWindow(wndMain);
Then in window wndMain's procedure, I try to show the test window I created earlier... (this is a portion of the procedure, not the whole thing)
case WM_COMMAND:
if(lParam==cmdAbout)
{
SetWindowText(txtMain,AboutPacer);
}
else if (lParam==cmdInstructions)
{
SetWindowText(txtMain,instructions);
}
else if(lParam==cmdStart)
{
ShowWindow(wndTest,SW_SHOWMAXIMIZED);
}
it says wndTest doesn't exist. This is obvously because wndTest was declared in MAIN and not procedure, but I dont know how to work this then. Any ideas?
|
|
|
|
|
declaring the variable static makes it exist only once for all instances of a class, I don't know what it achieves in a global function. I use a map of HWND to instances of my Window classes ( which I later found out MFC does too ) in order to access the varaibles associated with each Window. Apart from a similar scheme, I think you need to declare the handle globally. Just put the static HWND wndMain,wndTest; at the head of the program, and I suspect lose 'static'.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
You can trace the source code in MFC project,then you will
find the idea .
The MFC could Create more than one window.So if you look
into the source code ,you could have a entire understand
about the method.;)
|
|
|
|
|
I get this to work on Local directories, but when I try a remote machine, I get this:
11/08/01 21:28:03: Failed to start watch: The specified path is invalid. [\\DMADDEN01\Snort\Logs]
I have tried everything (that I can think of)...any ideas
Thanks in advance,
Dan
|
|
|
|
|
I have the same problem with cretedirectory, but I have no problem when I use a shared resource.
Cheers
Carlos Antollini.
|
|
|
|