|
There are two "flags" how to include run time libraries:
a) link to Single-Threaded, or Multi-Threaded libs
b) link to the .lib version (no runtime dependencies) or the .dll version (requires VC Runtime DLL's)
These two options can be combined freely, so "Multithreaded" is Multithreaded-Libs, and "Multithreaded-DLL" is, well, Multithreaded DLL's.
Note however, that the Lib vs. DLL settings of MFC must match the runtime library.
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
Hi Peter,
What do you mean? Multithreaded-Libs, and Multithreaded-DLL?
I'm not linking to a .lib, I'm talking about the project
properties setting, where in C/C++, Code Generation, there is
a setting of Single-threaded, multi-threaded, and multi-threaded
DLL.
By the way, if I'm linking to .lib, I'm utilitizing the runtime
dependencies, am I right? Sorry, I'm really just started in Windows
programming, you have to forgive my lack of knowledge.
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
You are (almost) always linking to a library: the C/C++ Runtime Library.
This library implements all the functions from the C/C++ standard library, such as strlen, malloc, etc. They come in two flavors: threadsafew or not, and a static library or as DLL.
Alex Ngai wrote:
you have to forgive my lack of knowledge
No need to apologize for trying to understand
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
I have a project that was originally built in Visual Studio C++ 6.0. I have since upgraded to Visual Studio .NET and am encountering a link problem. The project is a (non-ATL generated)COM server that also employs templates that is built across 2 projects. The base class("PluginServ") implements the DllCanUnloadNow, DllGetClassObject, DllRegisterServer, and DllUnregisterServer. The .def file is in the aggregated class ("DerivedPlugin") project and declares the above exports.
The link error is the following:
------ Build started: Project: DerivedPlugInServ, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
DerivedPlugInServ.def : error LNK2001: unresolved external symbol DllRegisterServer
DerivedPlugInServ.def : error LNK2001: unresolved external symbol DllUnregisterServer
.\Debug/VPF.lib : fatal error LNK1120: 2 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
Build log was saved at "file://c:\projects\src\DerivedPlugInServ\Debug\BuildLog.htm"
DerivedPlugInServ- 4 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped"
Anyone have any ideas as to how I may resolve this link error? I have looked online and have not come across a solution.
Thank you!
|
|
|
|
|
Jnewg5 wrote:
The base class("PluginServ") implements the DllCanUnloadNow, DllGetClassObject, DllRegisterServer, and DllUnregisterServer.
So your definition of DllRegisterServer is PluginServ::DllRegisterServer , ie. it resides inside a class? These functions must be global, ie. not in a class, and they must be defined as __declspec(dllexport) . Other than that, you'll have to give a bit more information.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I need to implement code that detects a RegistryChangeEvent, but I haven't been able to figure out how to do this. Any ideas?
Royce
|
|
|
|
|
DO you want to know which changes were made in which key or just you want to know that something is changed?
The first is really difficult the second is easy... (I have the code for the second... I can post)
Well... I am a beginner ...
|
|
|
|
|
What I really need is to know that something has changed in a given key and that it is not an interim change.
Yes, please post your code.
Thanks,
Royce
|
|
|
|
|
Well you open the key you want normally and you use this code to intercept changes:
<br />
RegNotifyChangeKeyValue(yourHKEY, true ,REG_NOTIFY_CHANGE_ATTRIBUTES + REG_NOTIFY_CHANGE_LAST_SET + REG_NOTIFY_CHANGE_NAME + REG_NOTIFY_CHANGE_SECURITY , 0 ,false);<br />
It will not return until a change is made in the key so I recommand using this in a thread...
You can find more info about REG_NOTIFY_CHANGE... on MSDN...
I hope this helps...
Well... I am a beginner ...
|
|
|
|
|
I wonder what do the following libraries do?
odbc32.lib
odbccp32.lib
comctl32.lib
wsock32.lib
Those libraries were used in a open source project.
I downloaded the source code, and I'm now studying
them. Please tell me what do they do and used for
if you know.
Thanks.
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
odbc32.lib and odbccp32.lib are ODBC (Open Database Connection) libs. comctl32.lib is the Windows common controls lib, and wsock32.lib is the Windows sockets library. These are all import libs for the corresponding dlls.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi Ravi,
Thanks for your reply. However, I'm just started in
windows programming, would you give me more details
about those libraries?
What is Open Database Connections?
What is the difference between odbc32.lib and odbccp32.lib?
Do I have to include both of them to utilitize ODBC?
What is Windows sockets library? What is it used for?
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
Alex Ngai wrote:
What is Open Database Connections?
See this[^] link.
Alex Ngai wrote:
What is Windows sockets library?
See this[^] link.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
To Ravi,
Also would you tell me what does winmm.lib do?
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
That's the Windows Multimedia library.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi Ravi,
Thanks for your reply. Yes, I know that it is
multi-media, but when do I need to use it?
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
When you want to call any of the Windows multimedia APIs, for example to play WAV files, eject a CD, play an AVI loop, etc. See the Multimedia section at CP for more information.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I was just wondering if it's possible to build a pixel manipulator for directx so that the output image (the rendered scene) can be manipulated. Let's say I want to convert a normal scene as it would be rendered and shown on the screen to a black&white scene where pixels in the front are light and pixels in the back are darker.
Is this possible and where do I have to look for?
Thanks in advance,
Nicolas
|
|
|
|
|
This possibly isn't the best place for help on DirectX, www.gamedev.net [^]and www.flipcode.com[^] tend to have a larger audience of DirectX programmers who know the best answers to these types of questions.
Possibly all you need is a light source (point or spot) positioned in the correct position in your scene - it's hard to tell from your post.
If by 'pixel manipulator' you mean pixel shader I'm assuming that yes, it can be done - but it depends alot on your video card. I haven't done it myself, but I have seen some impressive results from cel-shading (essentially the opposite of what you're describing - it discards information to produce cartoonish output) but searching the nvidia or ati websites should dig up a few good resources on pixel-shading.
The other alternative is to render to texture, and then to apply some type of transformation directly to that texture. This approach works well for PC's without video cards with grunt, but beware it's resource hungry and reasonably slow.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello codeproject users and consultants
guys i m stucked in a great problem i can't figure out how to program the newly created and previously created views in an MDI multiple views single document project. if any of u guys can help me i need it to b done quickly cause this is a part of my final project. if u guys can give me the add of a site which cud help me or a site where there is MFC answer Book is placed for "free" cause i can't afford to pay them it will b a great help.
|
|
|
|
|
How can I add text to a CView.
Thx in advance
|
|
|
|
|
CView::OnDraw(CDC* pDC)
{
pDC->TextOut(10, 10, "Added text to a CView");
}
How do I print my voice mail?
|
|
|
|
|
class CMyClass<br />
{<br />
const CString m_sArr[4] = {"a","b","c","d"};
};
Where can I initial it?
|
|
|
|
|
Hi,
It's no possible, but you can use static members
class CMyClass
{
static CString m_sArr[4];
};
CString CMyClass::m_sArr[4] = {"a","b","c","d"};
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|
|
// in .h
class CMyClass
{
static const CString m_sArr[5];
};
// in .cpp
const CString CMyClass::m_sArry[5] = {"abcd"};
|
|
|
|