|
i remember reading somewhere that it cant, but why not?
|
|
|
|
|
yes you can,
you have to precise it during the creation of your dll project. Moreover you have to choose between linking your dll dinamically or statically to the mfc.
|
|
|
|
|
I'm trying to create a program exposing it's interface to any third party software. No language limitations or assumption on the third party software can be made.The program is supposed to run as a service on a constant basis.
The program interface must reveal a way of reconfiguring/getting statistics from the program.
I'm wondering if anyone has an experience in the field of creating a program interface that will have following features:
1. Interprocess communication (Third party software will request/send information from/to my software)
2. Preferably will support remote usage. By a remote client.
One of the possible solutions is using a shared memory, but this is old and ugly approach.
Any suggestions with explanations,(COM?,COM+, DCOM?) will be highly appreciated.
|
|
|
|
|
SNMP?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Thank you for your response, but SNMP is just a means of interprocess communication, I need to expose the program interface somehow, thus SNMP is not enough.
|
|
|
|
|
sergeyv2002 wrote:
No [...] assumption on the third party software can be made
Does that mean the 3rd party software is available on in binary form, with no built-in support for the interface?
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
No. The third party software can be written on any language, but it must follow predifined basic rules, like calling the API exported by my program.
Sorry for the confusion.
|
|
|
|
|
Anyone know of a good ftp client class that works on ...... Linux.
Doing a project on Linux, and the only things I can see are FTP clients that are written in C, and not really very good either.
Just wondering if anyone knew of anything like the decent classes you get on Windows! Linux is pretty lame in this area.
|
|
|
|
|
|
|
Hello,
I have programming in VB, C# and have done a few applications in Visual C++ 6.
But how do all these programs compare against each other. I know that C# and VB.Net are about the same as they are run in the .Net framework, so they both depend on the .Net framework. But C# allows you to have better coding syntax as it is based on C++ and java.
I was told that Visual C++ unmanaged code was better than C#, VB.Net and managed Visual C++, only if it has been coded efficiently.
My question is what type of programs would you write with each of them? I was once told that Windows operating systems 2000, ME, and XP are written in unmanaged Visual C++.
If l am wrong with any of my comments, please correct me.
Many thanks in advance.
Steve
|
|
|
|
|
You're wanting to compare apples to oranges to grapes. Why? A screwdriver is comparable to a hammer is comparable to pliers in that they are all tools and all are made of metal. Other than that, they are designed for different applications.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I think he wanted to for what kind of project you gonna use one or the other.
In my case, I coded in vb6 and vb.net, I was using those when I wanted a little program to do something basic cause it was taking me less time. Or when I was coding software wich the rapidity isn't important and when I was using Database.
Now, I am coding in visual c++ 6.0 cause I am coding real time applications, so I can't really use others. My other choice would be visualbasic cause that's the only 2 way the api I have are coded with, and it would be too slow in those case.
I also use it, for small applications now, cause I am used to code in it, so to go with vb would take me a little more time now.
For c# I don't know, I never used it yet and didn't have the time to learn it.
|
|
|
|
|
How does one limit the app to a single instance without using mfc? I can only use regular c++.
Thanks,
sb
|
|
|
|
|
Use CreateMutex() as in this example. MFC is not required.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Really appreciate the link.
many thanks,
sb
|
|
|
|
|
Hi @ all,
i have a problem. I thing for you it is an easy question.
I want to set the property of a edit box read-only!
How can i do this during the runtime? Can somebody help me?
Thanks a lot
JayJay
|
|
|
|
|
Use ModifyStyle(0, ES_READONLY, 0) , or EnableWindow(FALSE) .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
The 'EnableWindow(FALSE)' works but i want to have the font black so i can read it better.
When i take the 'ModifyStyles' nothing change!?
|
|
|
|
|
By using EnableWindow(FALSE) , you will get a box with dark gray text on a light gray background. By using SetReadOnly(TRUE) , you will get a box with black text on a light gray background. If you really want to use EnableWindow(FALSE) , you will need to override the OnCtlColor() method in the dialog. When pWnd 's control id is that of the edit control, call SetTextColor(RGB(0, 0, 0)) . Examples of this are on MSDN.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
|
Hi all, I'm using CRecordSet for the database.
here how I open CRecordSet
<br />
CString qstr = "Select * from table1 where age=15";<br />
CDataBase db;<br />
BOOL bSuccess = db.Open(dsnName, FALSE, TRUE, TEXT("ODBC;"),FALSE);<br />
CRecordSet rs(&db);<br />
rs.Open(CRecordset::dynaset,qstr);<br />
So i have no problem getting all the data from the record. but when I want to update the table,
<br />
qstr = "Update table1 set age=12 where name='" + name + "'";<br />
rs.m_pDatabase->ExecuteSQL(qstr);<br />
I did the same thing in different program and it was working greate
but in this program.. I can't find the reason why I'm getting the following error.
<br />
"Operation must use an updateable query"<br />
If anyone of you had the same kind of situation please help me.
Thank you.
|
|
|
|
|
pnpfriend wrote:
can't find the reason why I'm getting the following error.
It's not an error. It's behaving exactly as expected when the database has been opened in read-only mode.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hello david, thanks for your respond.
what making the database opened in read-only mode?
"dynaset" isn't read only mode right?
|
|
|
|
|
Check your code again. While the recordset was opened as updateable, the database itself wasn't.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|