|
In your opinion, is there an equivalent to DCOM in .Net? Is it Web Services?
It's been so long since I've worked with this I'm not sure which direction to go...
Rolando
|
|
|
|
|
IIUC, .NET uses COM behind the scenes, for some things... Note sure if specifically DCOM, but anything is possible.
If specifically asking about remote object access, then yes, SOAP and web services are likely the way to go.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
|
Just a suggestion but for the Line monitoring I'd write a Windows Service and I'd have it talk to the client application using Sockets. Web technologies are not the best for Push applications where communications are initiated from the server end.
Also that way your client can be remote from the server. A two tier no Web no COM approach if you like.
If you do want a web front end then I'd go three tier with the web server hooking into a non visible version of the client app and for that I probably would use DCOM, or Connection Points or even a named pipe if the Presentation and Middleware layers could be combined. Depends if you'll need a Web Farm
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Excelent suggestion! I believe this would be the better way to go. I did not think about the Sockets. Cool.
Thanks for your help.
Rolando
|
|
|
|
|
I'm trying to make a dialog box appear from a file menu after clicking it with popup "Dialog" but i am getting the following error:
menu.obj : error LNK2001: unresolved external symbol "protected: virtual struct AFX_MSGMAP const * __thiscall CGuessDialog::GetMessageMap(void)const " (?GetMessageMap@CGuessDialog@@MBEPBUAFX_MSGMAP@@XZ)
Debug/menu.exe : fatal error LNK1120: 1 unresolved externals
I have been unable to debug but the problem comes in when i use the following code in my .cpp
afx_msg void CMenusWin::OnBringDialog() //Function associated
//with message identifier for launching the dialog box
{
CGuessDialog dlg; //creating an instance of CGuessDialog to
//execute constructor on being clicked
dlg.DoModal();
}
I have a class CGuessDialog in a header file and have already made the resources manually.(i am not using the wizard)
Below is my message map:
//DECLARE_MESSAGE_MAP() has been done on the CMenusWin.
BEGIN_MESSAGE_MAP(CMenusWin,CFrameWnd)//CMenusWin contains the main window
ON_COMMAND(IDM_DIALOGLAUNCHER,OnBringDialog)//OnBringDialog declared
//in CMenusWin
END_MESSAGE_MAP()
Please help. I'm sunk!!
Thanks
TreeS
|
|
|
|
|
Wamuti wrote: menu.obj : error LNK2001: unresolved external symbol "protected: virtual struct AFX_MSGMAP const * __thiscall CGuessDialog::GetMessageMap(void)const " (?GetMessageMap@CGuessDialog@@MBEPBUAFX_MSGMAP@@XZ)
Debug/menu.exe : fatal error LNK1120: 1 unresolved externals
You're probably missing a DECLARE_MESSAGE_MAP() in your CGuessDialog declaration.
Wamuti wrote: I have a class CGuessDialog in a header file and have already made the resources manually.(i am not using the wizard)
Well, create a dummy dialog with the wizard; compare the declarations and you should detect what's missing.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
|
Ha! Thanks;).
I have gotten that bug.As i was going through the header file, i found I had made two DECLARE_MESSAGE_MAP(), one in CMenusWin class and the other in CGuessDialog class
It now works! Thanks so so much.
TreeS
|
|
|
|
|
Hi all,
I would like to know whether it is possible to construct a structure so that one of it's variables can be initialized with out the other being effected ?? i.e
struct foo
{
char a[128];
char b[128];
}FOODOO[100] = {"to A","to A again"};
Thanks in advance
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
If such a thing should work, then it would be :
= {{"to A",},{"to A again",},{...}};
But I hope for C++'s sake that this is not possible
I think you will have to go through an init function. BTW, this smells like a bad design ...
|
|
|
|
|
|
Hi All!
What is the difference between DLL and process???
amit
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Hi,
DLL
====
1.DLL is inprocess
2.In one windows Application, if any problem in DLL, just that specific form or part only will not work.but if any problem in Exe, entire application will not work.
EXE
====
1.Executable file
2.exe is outprocess
An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file
for detail information plz look the below link
http://dotnetspider.com/qa/Question34260.aspx
http://dotnetspider.com/qa/Question36124.aspx
http://dotnetspider.com/qa/Question17736.aspx
http://dotnetspider.com/qa/Question12712.aspx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
A dll is a dynamic library, a collection of functions and methods.
This library kann be linked to an executable (.exe).
Windows creates a process for each executable which is started.
A process just exists in memory of your OS.
A process has an Name and an ID (see task manager).
A process executes code which ca reside in a dll.
|
|
|
|
|
I want to show bitmaps in icon form as previewings,just like the example thumbnail in cp,but I found that the item is just a section of the bitmap.
1.I import a bitmap to resource,modify its ID to IDB_BITMAP1.
2.I accociate a listctrl to m_listctrl.
3.I create: CImageList m_imagelist.
4.The last I do this in OnInitDialog():
//Load a bitmap
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
m_imagelist->Create(200,200,ILC_COLOR24,1,4);
m_imagelist->Add(&bitmap,RGB(255,0,0));
m_listctrl.SetImageList(m_imagelist,LVSIL_NORMAL);
m_listctrl.InsertItem(0,"1",0);
The result is the item in listctrl is just section of the bitmap,why?
Thanks~
|
|
|
|
|
Chen-XuNuo wrote: just section of the bitmap
You can choose between 16*16 or 32*32 icons for a listctrl, I think. I suppose you r bitmap is shrinked to 32*32. (not sure, however).
Constantly "Saving the day" should be taken as a sign of organizational dysfunction rather than individual skill - Ryan Roberts[^]
|
|
|
|
|
What do you mean~?And how can I do?
Besides,if I change the m_imagelist.Create to
m_imagelist.Create(300,300,...),it shows a bigger section of the bitmap~
|
|
|
|
|
What is your bitmap size, then ? And how much is displayed ?
Constantly "Saving the day" should be taken as a sign of organizational dysfunction rather than individual skill - Ryan Roberts[^]
|
|
|
|
|
Can you see a bitmap correct or no
|
|
|
|
|
I can see it,but only a section of the bitmap.
If I set 200*200,and the program shows 200*200 of the bitmap,how can I change the bitmap size?
|
|
|
|
|
If your bitmap is 500x500, but your image list is designed to hold images that are 200x200, you will only see the upper-left of the bitmap. That is expected behavior - the Imagelist control will not automatically scale images for you - you will have to do that yourself.
Also note that since you specified ILC_COLOR24 when creating the Imagelist control, setting a Mask value in the call to Add(...) will have no effect - Masks only work on 8-bit (or lower) bitmaps.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
I don't know my bitmap's size,but it must larger than 200*200.
You said I should do it myself,but how can I do?To change the bitmap's size?
Besides,what is the purpose of the mask?
Thanks~
|
|
|
|
|
You can use some software, like MSPaint, or the GIMP[^], to scale the images outside of the application. If you need to scale it internally, you can use GDI/GDI+ to draw the bitmap scaled directly into the appropriate area of the Imagelist control.
This is a bit tricky if you have a large number of images. Basically, you preallocate the space for the images in the Imagelist control using the ImageList_SetImageCount(...) macro, extract IMAGEINFO structures for each image "space" using the ImageList_GetImageInfo(...) macro, and then drawing the scaled-down image directly into the IMAGEINFO::hbmImage bitmap area.
Got all that? :P
Also, the "mask" is a color (or an area of the image) that is considered transparent when the image is drawn. In other words, the "mask" color (or area) is not drawn when the image is drawn onto the control.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Thanks~
But I am confused that I don't know how to resize the bitmaps before insert them to imagelist,is there any fuctions to do this?
And I have refer to the example http://www.codeproject.com/listctrl/thumbnail.asp?df=100&forumid=1951&fr=51[^] in cp.I found it do nothing to resize the bitmaps,but they are automaticly showed in thumbnails.Why`
James R. Twine wrote: extract IMAGEINFO structures for each image "space" using the ImageList_GetImageInfo(...) macro, and then drawing the scaled-down image directly into the IMAGEINFO::hbmImage bitmap area.
What is the purpose of this?I can only get the information in imagelist through this.And if I change the IMAGEINFO what I get from it ,nothing changed.
|
|
|
|