|
Thanks, I guess wrong choice of containers on my part.
|
|
|
|
|
I am trying to get a picture control to work in win 95.
This is the code that loads the code:
HBITMAP hbm = (HBITMAP)::LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(m_nBitmap), IMAGE_BITMAP, 0, 0, LR_LOADTRANSPARENT);
m_nBitmap is a UINT value containing the resource ID. It works in Windows XP but in 95 it just doesn't show a pic. Is there something wrong with the code?
- Matt Newman
- Matt Newman
-Sonork ID: 100.11179:BestSnowman
|
|
|
|
|
Check the resolution in Win95. If your controls size is smaller than a picture, it won't show it
Same code working fine in Win2000 and 98
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Yep some of the pictures were differnt sizes. Fixed that.
- Matt Newman
- Matt Newman
-Sonork ID: 100.11179:BestSnowman
|
|
|
|
|
Does anyone knows where can I get a program like api guide. What it does is that it shows all the Visual C++ api samples & coding for each single api.
|
|
|
|
|
Buy Win32 API super bible by Richard Simon [it has a CD with it that has all the source code examples]
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
The Platform SDK does a good job of providing samples for Microsoft Windows APIs.
Michael
|
|
|
|
|
I was wondering if there is anyway to format text (actually all I need to do is cat text) in an edit box.
For example:
I have a read-only edit box that is supposed to display text entered into other edit controls. Using SetWindowText(), I am able to successfully populate the read-only edit box with text from 1 of the other edit boxes. But when I try to use SetWindowText() with the others, it writes over all the previous text from the other controls, obviously. I attempted to use a Rich edit control, but for some strange reason, the code compiles fine but the executable just won't run. As soon as I took the Rich Edit out of the program, it ran fine. I don't really need all the "bells and whistles" that a Rich Edit control provides, I just need to be able to concatenate text in a simple edit control.
Jeez, this didn't come out too understandable. Sounded better in my head, don't know of anyway else to describe it though.
I hope someone can help.
Thanks in advance!
Digital Khaos
"Every problem has a solution"
|
|
|
|
|
First you setsel with the length of the text in the edit box as both beginning and end, then you replacesel with the text you want to concatenate.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software.
When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe?
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
You need to make an autorun.ini. I don't remember the exact sytax of the file off the top of my head, but if you take one of those CD's that does it and look at the file, it's very obvious.
Are you sure you want it to run setup automatically? A lot of those CD's have an autorun.exe that is simply a menu that can execute the setup. That way it doesn't start to install every time you put the CD in.
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
Greven wrote:
You need to make an autorun.ini
Actually it is autorun.inf
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
From the MSDN:
The minimalist AUTORUN.INF file only needs to contain three lines of text:
[autorun]
open=filename.exe
icon=filename.ico
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
|
I was wondering if anyone could point me in a direction to get information on how to design a program to download newsgroups. I am using MFC and would like to design an app that would allow the user to download selected news groups from Outlook Express to a PPC. If it is easier to write my own front end if you will for the desk top to obtain the News groups then transfer them to the ppc that way then that is also an option.
Any help is appreciated.
Thanks,
-Eric
|
|
|
|
|
Is there an easy way to get a subclass out of a class from within the class?
This would be easiest explained in code
class A;
class B: public A;
From within B, I need to get a temporary variable of the subclass A. The subclass is setup with void operator=(A& a); None of them are pointers, just ... can't remember the term right now... I access them with a . not a -> man my memory is going... Anyway, I've tried this:
A a;
a = (A)this;
and it of course doesn't work. How can I grab the data from the subclass?
What I'm doing is implementing a rotation function for the nice CPolygon class that Chris wrote (*very* nice class btw). And I want to make a temp copy of the CPolygon data so I don't loose the data as the poly rotates. (If you rotate a polygon to much it colapses in on itself due to inaccuracy) So I want to make a backup copy of the data, rotate that data and then use it. But I can't grab the data... What do I do?!? Argh!
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
A is the parent class of B, not the subclass. A pointer to B can always be cast to a pointer to A, so just do:
void B::SomeFunc()
{
A& refa = *(A*) this;
}
--Mike--
My really out-of-date homepage
Buffy's on. Gotta go, bye!
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Worked like a charm! Thanks a lot. Why does the syntax have to be so confusing sometimes
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
this would have worked.
A a;
a = *this;
Todd Smith
|
|
|
|
|
Does anyone know of any resources other than SDK documentation for DirectPlay 8? Is there any interest level for tutorials on this subject otherwise?
----
xian
|
|
|
|
|
I'd love to see some info, if you're thinking about writing it.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
I will begin looking into it if people are interested.
Thanks.
----
xian
|
|
|
|
|
I will begin looking into it if people are interested.
What do you mean by "begin looking into it"...?
Don't you have any knowledge on DirectX 8 yet?
Enjoy your life...
|
|
|
|
|
I will begin looking into it if people are interested.
What do you mean by "begin looking into it"...?
Don't you have any knowledge on DirectX 8 yet?
"Needless redundancy is the hobgoblin of the software engineering." - Peter Darnell
|
|
|
|
|
I want to get all the files from a specific directory.
How do I do it? I have no problems manipulating a single file.. my problem is on how to loop through the directory to get all files in it...
|
|
|
|