|
If you want to advertise, do it the correct way and buy a banner!
We saw your add yesterday, and we are going to ignore this one just the same.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
this isn't an appropriate way to advertise your product. pay for your ads, like everyone else.
-c
ABSURDITY:
A statement or belief manifestly inconsistent with one's own opinion.
|
|
|
|
|
Well I be(e) darned, another freeloader!
Free advertising might be good sometimes and in some places (for the advertiser, it's almost alwas just an annoyance for the poor souls happening to see it).
As you have by now hopefully been aware this was neither the time nor the place for it.
For the ones disliking annoying ad-gifs and crap, why not use JunkBuster? It's GPL and can block just about anything you want. There's a SourceForge project called ijbswa (IIRC) that runs it in the tray and adds fun stuff as perl-compatible regexp to replace page contents on-the-fly. Make e.g. /. look like CP?
|
|
|
|
|
If you really want to give it away for free, why not post it here on CP in the Free Tools section. Articles there do not have to include the source code, but source code is really appreciated.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Orgasms are universal!! -- Mike Mullikin in The Lounge 21:27 15 May '02
|
|
|
|
|
hi
dose anybody know how i would go about setting up a WINSOCKS connection between 2 PC's in a network using Visual c++.
I just want to be able to send message to connect, send data and close connection.
Any code would be really helpful.
thanks
|
|
|
|
|
If you have Platform SDK installed with samples, go to C:\Program Files\Microsoft SDK\Samples\NetDS\WinSock\Simple (or to folder where you have installed it). Two files - simplec.c and simples.c - are examples you would like to see.
Martin
|
|
|
|
|
i dont have acess to these files as it's a university computer
|
|
|
|
|
Try these ugly links:
http://msdn.microsoft.com/code/default.asp?url=/msdn-files/026/002/258/Source%20Files/Simplec_c.asp
http://msdn.microsoft.com/code/default.asp?url=/msdn-files/026/002/258/Source%20Files/Simples_c.asp
|
|
|
|
|
|
Have a look at my TCP/IP class at
www.sfxangel.com
under the "FreeStuff" section
Dark Angel
|
|
|
|
|
Hi!
Can somebody tell me why the linker can't link the object files?
I'm writing (trying to write) a test application to use DirectX. I use a downloaded sample code to create it and it seems to work. When i compile it no error occours until the linker is executed. But then it says:
error LNK2001: unresolved external symbol _DirectDrawCreate@12
Why could this happen
Even the unmodified sample doesn't work.
If anybody knows the answer please help me.
Thanks!
P.s.: The code is too long to place it here but if you need it please tell it to me and i'll send it to you.
Vis
|
|
|
|
|
It means you included a header for DirectDrawCreate, called the function, but did not link the appropriate .lib file into your project.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Below your #includes simply add the line
#pragma comment(lib,"ddraw.lib")
modified 12-Sep-18 21:01pm.
|
|
|
|
|
<marquee>Thanks
Vis
|
|
|
|
|
How can I make a pointer to CMainFrame???
I'm working on the CView class.. how can i make a pointer to CMainFrame?, does the pointer definition change if we try to do it on other class?
Stay cool
Phoenix
|
|
|
|
|
You can use this :
CMainFrame *pMainFrame;
pMainFrame = (CMainFrame *) GetParentFrame();
Regards
|
|
|
|
|
AfxGetApp ()->m_hMainWnd
Best regards,
Alexandru Savescu
|
|
|
|
|
CMainFrame *pMainFrm = static_cast<CMainFrame *>(AfxGetMainWnd())
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
I have noticed a perculiar effect. I want to have a status bar and a dialog bar at the bottom of the screen. Now, it seems that my status bar is always above the dialog bar. On the top, the statusbar is always below the dialogbar. Anyway around this?
Also, if I want to have multiple dialogbars showing on one side (say bottom), the dialog bar that is created FIRST will always beat the very bottom, no matter what order lets say I call ShowWindow etc. Is there anyway around this?
Thanks in advance.
|
|
|
|
|
Hi there,
How can I play a sound by MCIWnd functions in a loop ?
I mean when sound finishes then MCI play the sound again and again …
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello,
If I want to modify the cards.dll in windows which accompanies the Solitaire.exe to give the cards a new face, how to do it?
Thanks
Kidd
|
|
|
|
|
Why ?
It's a resource dll, just make your own.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Just open it in Visual Studio and set the file type as Resource and you can now edit the bitmaps
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Sorry if my terminology is wrong.
Anyways...How would I iterate an array of the following structure:
struct ITEM{
LPSTR Parent
LPSTR Caption
UINT Command
ITEM Child
}
I'm NOT looking for a C++ solution, but a generic psuedo-language answer would be GREAT!!!
I'm losing my mind trying to figure out how this would be done...if the array were simple it would be easy even if the number of levels were known it would be easier...a couple nested for loops would suffice. However...when each last field is a pointer to another just like it (but slightly different) that simple array transforms into something...I can't comprehend and it's driving me insane...
Anyone ever deal with such a data structure before...?
I thought this was a linked list or sort of anyways, but I can't just follow one elemnt to the next...I have to iterate each item in the array...
ie:
if there were 5 items, each had ZER0 children except the last which had 5 levels of 5 children each how would I loop through this kinda array and return all data...?
I'm playing with the idea of a windows menu data structure and my god...i'm lost...
Any ideas...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Your main problem here is that you have a recursive definition. Creating an ITEM in turn creates another ITEM, which creates another ITEM etc.
It would be considerably wiser to redefine like this:
struct ITEM{
LPSTR Parent
LPSTR Caption
UINT Command
ITEM *Child
}
This way, you create all the ITEM's you need and no more.
Anyway, a suitable way to look at all these it to recurse. Just like you would to walk a directory structure:-
void RecurseItems(ITEM *p_Item)
{
cout << "Got an ITEM at %X" << (DWORD) p_Item << "\n";
if (Child != NULL)
RecurseItems(Child);
}
That'll do the job.
Jon
STL is a religeon. Enquiries to Reverend Christian Graus
|
|
|
|