|
#
# Makefile for example bank application (conventional and RPC)
#
all:
client server
install:
all
@echo nothing to install.
clean:
rm *.o clientserver.h clientserver_xdr.c clientserver_clnt.c
clientserver_svc.c client server
#
# Dependencies for files generated by rpcgen
#
clientserver_clnt.c: clientserver.h clientserver.x
clientserver_svc.c: clientserver.h clientserver.x
clientserver_xdr.c: clientserver.h clientserver.x
clientserver.h: clientserver.x
rpcgen clientserver.x
#
# Link client-side files for RPC version
#
bank: bank_clnt.o bank_cif.o bank.o bank_xdr.o
gcc -o bank bank_clnt.o bank_cif.o bank.o \
bank_xdr.o -lnsl
#
# Link server-side files for RPC version
#
server: clientserver_svc.o clientserver_sif.o clientserver_srp.o
clientserver_xdr.o
gcc -o server clientserver_svc.o clientserver_sif.o
clientserver_srp.o \
clientserver_xdr.o -lnsl
#
# Individual object file dependencies
#
clientserver.o: clientserver.c clientserver.h clientserver.x
gcc -c clientserver.c
clientserver_clnt.o: clientserver_clnt.c clientserver.h clientserver.x
gcc -c clientserver_clnt.c
clientserver_svc.o: clientserver_svc.c clientserver.h clientserver.x
gcc -c clientserver_svc.c
clientserver_xdr.o: clientserver_xdr.c clientserver.h clientserver.x
gcc -c clientserver_xdr.c
clientserver_cif.o: clientserver_cif.c clientserver.h clientserver.x
gcc -c clientserver_cif.c
clientserver_sif.o: clientserver_sif.c clientserver.h clientserver.x
gcc -c clientserver_sif.c
clientserver_srp.o: clientserver_srp.c clientserver.h clientserver.x
gcc -c clientserver_srp.c
|
|
|
|
|
i have here the initial design, but how can i attached it so you can see my work , and help me through this
thank you
|
|
|
|
|
halloo all , is there any one have a VC++ code for taking a video from computer camera and store the video data in any video format(.AVI,.mpg,...etc) while still i can take the video data,process it and store it againe and play it if i want .help me please.
thanks fore any help.
|
|
|
|
|
Get a copy of the directshow SDK. I think that it is now part of the main DirectX SDK. Have a look at the AMCap sample application, should get you started.
Ryan.
|
|
|
|
|
|
Hi,
I'm having problems with the CMenu class and was hoping someone would be able to help. The problem is that the CMenu class is modal and therefore stops the rest of my application from running whenever a menu is opened. This is a problem because every program cycle I look at a comm port and read in whatever is in the port. If someone leaves the menu open the buffer fills up and I have to resynchronise with the external hardware. Is there a way to make the CMenu class act in a non-modal way or is there a way to handle the comm port (without using threads preferably)?
I'm using Visual Studio 6.0 and am using the MSComm ActiveX control to communicate with the comm port.
Thanks in advance,
Phil
|
|
|
|
|
The problem here is not the CMenu class. You have a classic problem of trying to do too much in the UI thread. You should be spawning a worker thread to deal with the communication port sending/receiving. This other thread can post events to the UI thread as they occur in the form of message, which will be processed in the UI thread even if a menu is open.
I do beleive that the serial port example(s) here at CP take this approach.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
I was worried you'd say that... I think you're right. I've used the UI thread in the past for processing comms but never with the CMenu class as well. Never mind, rework here I come.
Thanks for the help.
|
|
|
|
|
I am doing an app in Win32 SDK( No MFC!!!Thats the requirement)
Well I wanna detect which browser do i have-
1> Internet Explorer
or
2> Netscape Navigator
This we can do using Javascript ,VBScript etc
I wanna do this using Win32SDK.
If anyone has a solution reply me as soon as possible
Thanx Buddies for solving my problems
modified 21-Apr-21 21:01pm.
|
|
|
|
|
You didn't say for what protocol, but if you are talking about HTTP, try looking at HKEY_CLASSES_ROOT\http\shell\open\command.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
How to set the sound channel volumes and (un)mute those channels using the Windows API?
|
|
|
|
|
|
hi ,
does anyone has any idea about the conversion of .bmp/.jpg to .pcx format.
Any idea about any classes will also do
Thank you.
Satadru
|
|
|
|
|
|
When the trial period of my app has expired (jtodaysdate - jinstalldate) plus some other things I better not mention here. Should I?
Write to the executable a bunch of 01010101010101
or set a GUID mutex atom to a instance of the os?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
The best way to implement a trial period schema is to use some method that modifies the application executable itself. This way, a peep who'd want to hack your trial protection would need to have solid understanding of assembly and reverse-engineering.
Of course, the securest method would be a combination of executable modification, registry keys and INI/DLL-files.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
OK Great,
I have lost faith in folks ability to be honest.
I posted my static ip on codeproject by accident in a response and have gotton 82 hack attempts so far, none got through.
Anyway I thank you and understand the reference to dll and ini and have implemented them.
I guess I will write 0's 1's to the executable also.
If I set the GUID of the mutex to the guid of the os and only allowed 1 instance that would be cool, also!
Great answer thank you!
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Neither,
I would think you want to show nice dialog: "Trial period expired", visit <company> website to purchase licenses and get free upgrades.
Writing over executable with "0101" is childish and not productive. On the day X user could have clicked on your executable by mistake and closed app. Next thing he/she knows application exits w/o warning... Is it broken? Messed up?
Would writing over executable stop even novice hacker? I doubt that. All it takes to nop area "call WriteFile[A]"...
Brian
|
|
|
|
|
Yes sure and I can go around a dlgbox in half a minute, so can you I guess, but I think I will stick with an original plan.
Look at the cracks available on the web for what you are advocating.
Thank you for the response.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi,
i need to export some classes in DLL created in VC++, which is fine. I understand how to use exported functions in VC++ dll from VB, but how is it (if) possible to use exported classes from VB?
I could not find any articles in MSDN / web regarding this. I would greatly appreaciate if somebody can direct me, where to get more information on this.
many thanks
Aby Philip
|
|
|
|
|
The question arises: are you willing to export an object of the class from the DLL, or the definition of the class ?
If it is the first one, then may I suggest that you create a global object inside the DLL's code, and export a function from the DLL which returns the address of this object. This, however, requires that you have the definition of the class available at the loading application in order to use it. I do not know for sure how well you can use C++ header files in a VB project, or if there is a conversion available.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
hi friends,
i have a c++ program like this :
#include "iostream.h"
int main()
{
cout << "John" << endl;
return 1;
}
The program will print "John" on screen.
Now my problem is that i want to print "Hello John Bye" on the screen without changing anything inside main function.
CAN SOMEBODY PROVIDE ME THE ANSWER.
|
|
|
|
|
#include "stdafx.h"
using std::cout;
using std::endl;
class CTest
{
public:
CTest()
{
cout << "Hello John bye" << endl;
exit(0);
}
};
int main(int argc, char* argv[])
{
cout << "John" << endl;
return 0;
}
CTest test;
|
|
|
|
|
Hi Imran,
It will print ,"Hi John bye John" but i need "Hi john bye".
|
|
|
|
|
Based on Imran's solution, here is a bit more customized version which does as desired.
#include <iostream>
using namespace std;<DIV>
class CFirst
{
public:
CFirst() { cout << "Hi "; }
}<DIV>
class CLast
{
public:
CLast() { cout << " Bye"; }
}<DIV>
CFirst object1;<DIV>
int main( int argc, char* argv[] )
{
cout << "John" << endl;
return 0;
}<DIV>
CLast object2; This piece would print "Hi John\n Bye". Removing the line change from inside main is impossible, as far as I know, without doing some serious stream interception. All this seems unnecessary though. Just boot the line change from there, or pretend that you didn't notice it :P
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|