|
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"};
|
|
|
|
|
Visual C++ 6 editor help us to complete our Code by showing some useful data in Tooltip such as "Auto Type Info" or "Code Comments".
This option by default enabled in Tools->Option->Editor->"Statement Completion Option".
Some "Code Comments" has more than one comments.
e.g: "[1 of 3] void CMyClass::_MyOverloadedFunc(...);" will displayed in Tooltip.
We can switch between them by clicking on it by mouse.
So, How can I switch between "Code Comments" by keyboard!?
|
|
|
|
|
|
Awww you rock man!
One day, real programmers will stop pushing around leetle mice!
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
Hi now a days i am developing a news ticker , just like one we could see on news channels at bottom a strip in which Text and logos scrolls from right to left.
i have succeeded in scrolling the text , but i am feeling difficulty in scrolling logos or image alongwith text.
so can anybody give some hint how to do it , or article abut such news ticker.
even i dont mind to buy some news ticker component or stuff but i am not able to find one.
Unmanaged in a .NET world
|
|
|
|
|
|
Hi,
Is there any API for getting memory usage of loaded windows kernel (.sys) driver.
I can get list of loaded drivers using EnumDeviceDrivers() API.
I am using Windows XP.
Regards,
Praks
|
|
|
|
|
HI..
Can u tell me How to get Cookies from sever, I'm sending request via Internet Explorer then it set Cookies, but when I send Request via my program then It Don't send Cookie.
Do u know How to get cookies from server using mfc or win32 api.
i hope u help me.
Thanks
---Sumit Kapoor---
|
|
|
|
|
Hello.
Can anybody give me the source of the flat button?
Only Win32Api, please.
Thanks.
|
|
|
|
|
Hello,
sorry for posting this here.
The question is:
how to replace malloc with the Lea's allocator malloc ?
http://gee.cs.oswego.edu/dl/html/malloc.html
I tried everything but it doesn't work.
I even posted this question to the author of its malloc replacement, Lea Dough.
But my question is more windows related so he cannot answer me.
At the same time I know that somebody here has been able to do it.
Here is the list of what I did and of what some related question.
But really what matter is that somebody is telling me how to do it.
I am building a program build on top of other dynamic libraries. Everything using STLport.
I created another static library, or dynamic
I made as very first line of code in the first
#if defined(USE_LEA) && defined(_WIN32)
#pragma comment(lib, "libLea.lib")
#endif
If I #include malloc.h then I have compilers problem ( probably because the library is using precompiled headers ) like:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdlib.h(291): error C2375: 'malloc' : redefinition; different linkage
If I do not #include malloc.h then it compiles but at the end it is not using the malloc of Lea.
I would like not to use detour.
I don't think is a good idea to replace malloc.c malloc.h in the Visual Studio .NET\Vc7\include directory
Can somebody help me ?
Thanks a lot.
Cheers,
Marcello
|
|
|
|
|
I want to draw a line on the console,and my codes as follow:
HDC hDC=GetDC(GetConsoleWindow());
if(NULL == hDC)
return ;
MoveToEx(hDC,10,10,NULL);
LineTo(hDC,200,200);
it does not work well,there is nothing on the screen,what should I do?
|
|
|
|
|
You should use special console functions (see
Platform SDK-> DLLs, Processes, and Threads-> Console Reference in MSDN). The functions like GetDC, MoveToEx, LineTo can't be applied to this situation.
|
|
|
|