|
I think you need to use \r\n to delimit the lines correctly
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Hi,
My program need to run MSXML3 ( I have downloaded from Microsoft the MSXML3 MSI and CAB files), I install my program with Wise.
My question is, how can I make that first it install the MSXML3, and after my program ( if I try that it don´t works it tells me that there is an MSI already running and...).
Or how can I register the MSXML Dll's manually ( regsvr32... is not the solution )
Thank's in advance, greetings
Braulio
|
|
|
|
|
Hello,
i use Icon's in the SubItems of the ListControl.
But i can't suppress the appearing of the Icon in the first column.
I tried :
LVITEM lvi= {0};
lvi.mask = LVIF_TEXT;
...
lvi.iImage = -1; -> Then i get free space in the first column.
or
//lvi.iImage = -1; Then i get the first Bitmap.
Please help !!!
Marco
|
|
|
|
|
As far as I know (i posted a thread about this here a few weeks ago), it is surprisingly _not_ possible to do that (that´s what I was told in the preceding answers. So you´ll have to put a picture everywhere, or nowhere.).
If someone has a counter example, I´ll be very happy ...
~RaGE();
|
|
|
|
|
Why not have a blank entry in your image list and use that for the image?
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Hi,
because it seems that the empty Space is defined by the ImageList Settings,
not by the bitmap.
pImageList->Create(15, 15, ILC_MASK, 6, 4);
Best regards
Marco
Marco
|
|
|
|
|
Pick your choice: use icon or don't. If you do, it is in the first columne (because so has Microsoft said, and since they are allmighty and never publishes any source code that never has any bugs, you are basically f_cked).
Perhaps some of the extended listboxes here at CP (in combination with a listcontrol) could do the trick?
|
|
|
|
|
I'm in need to transfer files from a driver to server(s) somewhere on the network.
The servers are discovered through AD service connection points.
The question is now, what could I use to adhere to the AD replication rules when the driver needs to transfer files to the server?
BITS is out of question, since its a COM only service and has not much with AD. Synchronization manager might be a solution but I am not sure of. A pretty ugly solution would be creating silently a GPO, attach the file to it, assign it to the target server and hope for the best, but again this involves lots of COM.
What else? (besides of manually reading AD settings)
Any ideas?
Vote against software patents in europe
|
|
|
|
|
Andreas Saurwein wrote:
I'm in need to transfer files from a driver to server(s) somewhere on the network.
You need to transfer data from a (inherently kernel-mode) driver to a "server"? I don't think so.
I'm sorry that I haven't got an answer for you (or even anywhere to point you except to Microsoft), but it seems you are really barking up the wring tree here.
|
|
|
|
|
Mike Nordell wrote:
You need to transfer data from a (inherently kernel-mode) driver to a "server"? I don't think so.
Never mind. I know that I need to transfer data from a kernel mode driver to a server located somewhere on the network. And I really would like to improve the currently used mechanism.
And telling that you have no clue, isnt of much help.
Thanks anyway.
Vote against software patents in europe
|
|
|
|
|
Hi all,
I need to write a dialog based MFC application that has multiple modal dialogs. One of the dialog will be the main dialog and always appear first. For the other dialogs, each may invoke some of the other dialogs for multiple levels based on the input of the user, though no dialog will appear more than once in any instance.
In the application I need a static object that almost all dialogs will access it. How can i do it? Simply speaking, I don't even know how to store a global variable in a dialog based application
Any help would be appreciate.
|
|
|
|
|
Any variable declaration made in your cpp files 'outside' any class implementation will be treated as global.
I usually declare global variables in the App implementation file, just after its declaration.
If you open the implementation file of your CWinApp derived class. This should be called something like <projectname>.cpp (C<projectname>App), towards the beginning you should see the app declaration. Just declare your variable there as you would any other.
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyApp object
CMyApp theApp;
bool global_variable; // this now a global variable
|
|
|
|
|
I have added this line under the CWinApp declaration:
CMyObject D1;
When I try to use it in one of the dialog, I get the following error:
C2065: 'D1' : undeclared identifier
error C2228: left of '.Init' must have class/struct/union type
I have tried to put '::' before 'D1' and I get one more line of error:
error C2039: 'D1' : is not a member of '`global namespace''error.
The strange thing is, the IntelleSense give me 'D1' when I type '::' and 'Init' when I type '.'.
Do I need to include any code in these dialog to let them know the existence of a global variable?
Thanks in advance.
|
|
|
|
|
and now you have o declare the variable so taht other modules can know what the type is.
put "extern CMyObject D1;" in your CWinApp's .H file
-c
Garbage collection, making life better - for weenies!
|
|
|
|
|
Is it really necessary to have a global variable for that ? I mean, if your app is based on a "MainDlg", it is better to store the object you want to be able to access to from "everywhere" as a member of your Maindlg, and override all other DoModal or Create function from other childdlg to pass a pointer on the MainDlg... ´Course, it works with global variables (and it is more simple) but ...
~RaGE();
|
|
|
|
|
I do not like to declare global variables. Instead you may declare it in your CWinApp-derived class and access it like this:
((CMyApp*)AfxGetApp())->m_MyGlobalVariable
Best regards,
Alexandru Savescu
|
|
|
|
|
Does anyone know how to convert a char* to a _variant_t ??
Matt Smith
|
|
|
|
|
That's easy:
v = s;
where v is a _variant_t and s a char*.
Sofus Mortensen
Comet - open source, grunge free COM c++ library
http://www.lambdasoft.dk/comet
|
|
|
|
|
I've tested this and works ok:
_variant_t v;
char *sz;
sz=new char[10];
strcpy(sz, "aaa");
v=sz;
AfxMessageBox((_bstr_t)v);
delete [] sz;
rechi
|
|
|
|
|
exported function (inside dll):
getcomponent()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
m_hInThread = AfxBeginThread((AFX_THREADPROC )KIDeviceServiceThreadIn,(PVOID)(CDriver*)this);
}
DWORD WINAPI KIDeviceServiceThreadIn(PVOID pMain)
{
...
pthis->pDocument->UpdateAllViews(); Error use view (when afxMapHWND()==NULL ????;) view - no valid???? but pointer is valid
...
}
|
|
|
|
|
Generally you cannot manipulate the windows from another thread,
this is some thing to do with message pumps.
Try posting a User defined message to the concerned thread and
then Invalidate the Window in that thread from the Message Handler.
|
|
|
|
|
I'm looking for a menu designer and screen designer sample.
Menu designer is just like Visual Studio's one. It lets user to design menu graphically.
Screen designer, just a view that i can move the objects. Any samples i can find, coz I don't know much about GDI.
|
|
|
|
|
Hi all,
I'm working with a Dialog based application.I would like to move a bmp or jpg picture through the bottom of my dialog(say a joker running through the bottom of my dialog) just like a bonzy buddy in which a chimpanzy walks through the bottom of desktop,jumps ,eats a banana etc...
Can any one suggest a method for it?
Shibu K.V.
Senior Research Associate.
VLSI ASIC Hardware Design Group
Electronics R&D Centre,Trivandrum
India
|
|
|
|
|
OnEraseBkgrnd
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Hi,
I'm working with a dialog based application in which the main dialog is used for logon operation.If the user id and password are correct the main dialog is closed(OnOk() is called) and a second dialog is created using DoModal().But the problem is that if i minimise this dialog its icon is not seen on the task bar just like internet explorer window which moves on to the taskbar on minimising it.In my application if i minimise my dialog the title bar of my dialog gets minimised and it moves on to the left corner of my screen and no information about that window is available on the task bar.How can i rectify it?
Shibu K.V.
Senior Research Associate.
VLSI ASIC Hardware Design Group
Electronics R&D Centre,Trivandrum
India
|
|
|
|