|
since #pragma is defined in thirdparty files, we cannot modify them.
May be we need to do it different way.
Is it possible to remove that #pragma by programatically? Or by some settings in our application?
|
|
|
|
|
I dont know
Maybe modiying the code or copying the interesting parts in a separate file.
#define _M_IX86 in the project settings or in the stdafx.h like "#define _M_IX86 1"
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Can't you use the Microsoft manifest tool[^] to modify/remove the manifest? Another option is to call the SetWindowTheme Function[^] on the affected controls. Maybe call it on all child windows?
SetWindowTheme(m_YourControl.m_hWnd,L"",L"");
Although this seems more like a hack.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
I am very new to VC++ and I got to work in VC++. My requirement is to call dll from an exe and I need to pass some value to the dll. I need to use that value in the dll.
I am using LoadLibrary method to invoke the dll. But how to pass a value and how to use that value in the dll. Please help me.
for example:
LoadLibrary("test.dll", "display this text");
On load of dll (::OnInitDialog()): i want to display the message "dispay this text".
How could I do this. Please help me out in this.
Thanks in Advance,
AR Reddy
|
|
|
|
|
see GetProcAddress[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Thanks sashoalm,
Now I got to know how to pass the value to a dll. But how to get that value from dll method. Please let me know. I am very poor in VC++.
Thanks in advance,
AR Reddy
|
|
|
|
|
You first need to read some basic document about, see, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
AR Reddy wrote: ...and I need to pass some value to the dll.
There's no such concept. DLLs contain exported functions. You first have to load one of those functions (via GetProcAddress() ) and then pass arguments to it.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
How to get MySQL install path?Plz help me
|
|
|
|
|
look in the install directory of yor harddrive and search for the string in the registry. Somewhere it stands..
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
There are two ways:
1. Using registry: The path can be read from
HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Server 5.1\Location
2. Using mysql database
use mysql;
select @@basedir;
-Saurabh
|
|
|
|
|
Thanks it's working for me.
|
|
|
|
|
You are welcome.
-Saurabh
|
|
|
|
|
Hi,
I want to build one MFC dll which will act as a server using socket or any other concepts...
And then want to build one windows application using c# which will act as a client. If i click a button from the c# application, one of the server function want to invoke!.. Is it possible? If anybody know, please guide me...
Thanx in advance
Surez
|
|
|
|
|
$uresh $hanmugam wrote: Is it possible?
Yes
$uresh $hanmugam wrote: If anybody know, please guide me...
Learn MFC, then learn C#, then write the two parts of your program and test them.
If you have already written parts of these progrmas and have come across a problem then tell us what is wrong and we may be able to help.
|
|
|
|
|
Usually sockets are used for communications between remote machines, on the other hand, a C# application may interact (the way you depicted) with a DLL via interoperability, see for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
As you are getting bits of advice...
I DLL does not run in isolation - you need an exe to use that DLL.
So, why not write a EXE server?
As has been said, sockets are great for communicating between machine - on different OS's, on different continents too. If you know these processes will be on the same machine, there are simpler inter-process methods!
http://www.flounder.com/kb192570.htm[^] may be of use to you.
Iain.
ps, if you have not worked it out by now, you're asking "I want to make a new car. Can anyone guide me" "well, it's a big question, what do you know now?"
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
MFC has socket class implementations (Both synchronous and asynchronous). Use the asynchronous socket class to build your server and use synchronous socket class to connect to the server. Accept connections with the UI thread and use a threadpool to serve the clients.
Hint:
Synchronous = blocking = CSocket
Asynchronous = non-blocking = CAsyncSocket
Hint 2: Sockets are not programming language dependent.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
i want to create text file in pocket pc,in following format.
123456
789101112
444545454
7787
means each string in new line.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
_$h@nky_, You've been on these forums for a while, so I'm kinda surprised that you need help with this. But here you go.
1/ Create a file, probably ending in .txt. (CreateFile)
2/ Write a line into this file, ending in a carriage return / linefeed. (WriteFile)
3/ Repeat (2) with other data, as often as you like.
4/ Close the file (CloseHandle).
That's it!
I do find you puzzling - one week you're asking help about some really advanced topic - another week you're asking how to tie your shoe laces. Are you writing some mega big software?
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Its not done thats why i ask this question.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: Its not done
Then do it!
"_$h@nky_" wrote: thats why i ask this question
If you keep asking, you'll never do it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i want to use a progress bar in my dialog based MFC application,i have draged progess bar from tool box and have made its variable named m_prog
now i dnt know what to do for making it working...can n e budy help me out in this....thanx.
|
|
|
|
|
The first thing to think about is that you need to have a task with some progress. The common mistake people do when using a progress bar is that they put their task in the main thread and regularly advance progress on the progress bar. This is not going to work because while you are processing your task, no messages are processed which means the full UI will freeze (and the progress bar won't progress).
What kind of task are you running ? Is it a kind of computation ? If yes, is it running in a separate thread ?
|
|
|
|