|
Yes..its an image data .
I am receiving continously...I need to display as and when I revceive.
thanks in advance
Ashok
|
|
|
|
|
If you can convert it to bitmap, then as I early mentioned, you can use SetBitmap.
Another option is that customize the static control (deriving from CStatic) and put each pixel in to the DC in OnPaint(). SetPixelV API can be used for that.
- NS -
|
|
|
|
|
|
Welcome
- NS -
|
|
|
|
|
Better to copy the pixel data to a array , and disaply as a bitmap .
it is faster than SetPixel method.
If u can Dream... U can do it
|
|
|
|
|
I am creating a new CButton programatically using following syntax :
CButton *xtn;
xbtn = new CButton();
xbtn->Create(... // relevant syntax
My problem is text of the caption of button is always BOLD. I want it to be default-NON BOLD. I also tried getting a device context and then font and then LOGFONT ... change its weight property to 100 and then setting it as font of button's DC using selectobject() bt even that didnt work.
Please help.
-Cagespear
|
|
|
|
|
Use xbtn->SetFont( ...
- NS -
|
|
|
|
|
You can change font of button with SetFont and also make your font with CreateFont and then use of it on the button.
|
|
|
|
|
Hi,
I am creating a dialog which is at 4 levels down in inheritence. Like
Cdialog->MyDialog1->Mydialog2->MyDialog3
MyDialog3 has its own resource file and Dialog resource ID. Mydialog1 and 2 have their own resource file and Dialog resource ID. But everytime I use new Dialog resource id the program crashes at MyDIalog3->create() call itself.
So MyDialog3::create(NEW_IDD, Ptr_to_wnd) calls
MyDialog2::create(NEW_IDD, Ptr_to_wnd) calls
MyDialog1::create(NEW_IDD, Ptr_to_wnd) calls
CDialog::create(NEW_IDD, ptr_to_wnd) - the program crashes here in PreCreateDIalog(). If I give the dialog resource id of mydialog2 or 1 then it works but it doesnt work with MyDialog3's dialog resource id passed in create call.
Can you please advice ?
-Cagespear
|
|
|
|
|
Is there any control in the dialog1 or dialog2 resource in use by those dialog classes, which is not present in the dialog3 resource?
- NS -
|
|
|
|
|
If you make your dialog with Create dont need to make it again you can use of ShowWindow(SW_HIDE or SW_SHOW) for use it and why you didnt use of CPropertyPage.
|
|
|
|
|
Greetings, and apologies if you have already read this under COM.
I have created a DLL using the ATL COM AppWizard, and have successfully added a class and functions. I was also successful in create and an expose an enum by including
typedef enum {aa,bb,cc} testEnum;
in the .idl file.
PROBLEM: how do I add definitions of global members? In other words, I would like some constants, variables and functions to be immediately available to VB applications that use my dll, in the same way that the "Load" method or the "App" property become available once the a reference to VB6.olb is created.
Thanks is advance,
zgilboa
|
|
|
|
|
How does a Windows "VIEW" page send a BEEP code (ASCII 0x07) to the console. The _putch() function does not do it from a VIEW.
|
|
|
|
|
MessageBeep(-1) maybe?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you. Of all the books I have on programming Windows none mentions MessageBeep(). I found that just Beep() works as well.
|
|
|
|
|
And maybe you will need to virtual key code so see this link[^]
|
|
|
|
|
WhiteSky wrote: And maybe you will need to virtual key code so see this link[^]
hummm....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I think maybe he will be these codes? maybe not;)
|
|
|
|
|
It's been awhile since I've used this, but I think system(07) will do it. the prototype for system() is in stdlib.h
none
|
|
|
|
|
My question is quite elementary in nature but i have really forgotten how to move about this thing. i am facing problem with making linked lists without using the header for them in visual c++. i mean i want to make a class for the purpose.
any help would be really appreiciated. the crude code that i have written till now is given. i want to know what really i am missing here.
#include<iostream>
using namespace std;
class data
{
private:
*previous;
char name;
int pnum;
int gpa;
*next;
public:
void add()
{
}
void del()
{
}
void average_gpa()
{
}
};
int main()
{
*data=new data;
return 0;
}
Muhammad Shemyal Nisar
-- modified at 22:58 Tuesday 7th August, 2007
|
|
|
|
|
Hrmmm, the question is written reasonably well, spelling and grammar are quite passable, although it doesn't really explain what you're trying to do.
Pity it's in the completely wrong forum....
I have no blog...
|
|
|
|
|
Heh. Was this moved here from the ASP.NET board?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Heh. Was this moved here from the ASP.NET board?
offcourse!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Your data class seems to be mixing/combining the list itself and the nodes within the list.
class data
{
public:
data()
{
previous = NULL;
next = NULL;
}
private:
data *previous;
char name;
int pnum;
int gpa;
data *next;
}; Now create a class that adds/deletes data nodes within a list.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Disclaimer: I am pretty new to MFC and may be asking something very naive, but your help would be really appreciated.
What I am trying to accomplish:
display images that may be stored on the users local machine, on a mapped network drive or a webfolder.
Problem:
1. unable to open image files on mapped network drives and webfolders.
2. unable to use CFileDialog to give me paths for webfolder or network drive paths that I can persist for reopening those files later - what I get is a temporary internet file path on the local machine.
What I have tried:
using CFile to open webfolder files - failed. May be I don't know how to construct the filepath. Or maybe I need a different API altogether.
Any help in this regard would be highly appreciated - specifically code snippets (please be kind and bear in mind that I fairly new to MFC)
Thanks,
Anuj
|
|
|
|