|
First of all Password protect you PC then disable any folder you are sharing on network and disable remote access to you computer in My Computer>Properties.Enable Windows firewall.Use some other firewall.
|
|
|
|
|
forgot one thing
Look in administrative tools and from there Security policy something like that i dont remember exactly and remove all users except you,System,Administrators from the list of those who can access your system.And dont remove yourself otherwise you will not be able to access your drive.
|
|
|
|
|
I want to do something when the audio device is recoding.
How to detect the beginning and end of recoding?
Does Windows post a notification message or event?
Jesa
|
|
|
|
|
|
The WIM_OPEN and WIM_CLOSE message will not broadcast to all application.
I want to know that other application is using audio device to record.
But WIM_OPEN and WIN_CLOSE message seem to be use for CALLBACK function, doesn't it?
Will Windows post a message to notify all applications when audio device is recording?
Jesa
|
|
|
|
|
how to change the icon of C++ exe files
|
|
|
|
|
the same way you do for any other exe icon.
It doesnt matter what language its written in.
bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
that calculate large integers (till 100 digits)
with tohse operations only: + , - , *
with simple code !!!
without libraries except for:
stdio.h
stdlib.h
malloc.h
|
|
|
|
|
Blast, I cann't find it! Do a search on the Norton series of books. Years ago I found a book that showed how to do this precisly (so we all could understand it). I use it to write my own C code (much more flexable) for creating caculators and graphing programs.
There is an article at CP that will help you, just do a search.
As for 100s of digits, well that is a whole nother subject!
INTP
|
|
|
|
|
Does anyone know of a good place that has a tutorial or complete "working" programs that use C++ Serial I/O Comm routines? I have found some stuff, but all have many errors which doesn't help me since I dont know much of it to begin with. I am using MSoft's Visual Studio.NET just to let you know in case some code isnt directly compatible with it.
Thanks
P.S. I found a C++ Serial Comm Library from "WSC" but all it had was a .lib file (obviously a library) and a header file. Now I never worked with libraries before in c++ so I didnt know how to use it. What I did was include both in my original source file and it came with so many errors I didnt even try to fix them because as I said I dont know enough about how to use serial comm in c++.
P.P.S. I do know How serial comm works in general just not how to incorporate it into a c++ program.
|
|
|
|
|
CNewbie wrote:
Now I never worked with libraries before in c++
How did you write any programs then?
In the old days that was normal, but DOS is almost dead and very few peaple try to access the hardware directly any more.
The MSDN has "Serial Communications Functions" listed, I do not know if that helps!
There is an article at CP some where, I do not beleave it is the one you found (but is sounds like it).
Google "CreateFile Serial Comm", it gave some good hits.
Sorry I was of no more help, this use to be easy until modern Windows came along (security and all that). Now it appears so complicated that I have to look it up (each time) before tying it.
INTP
|
|
|
|
|
For my current application (MFC C++ dialog)I was generating my own database, just a large array of type Struct (name, address, cost, code etc - CStringArray, CStrings, ints and doubles ) and initialing it at startup via a Tab delimited file. The program will then add more records as required.
The reason for moving to mySQL is one of speed and its free.
I was just using the CStringArray class to store the names of items and do all the searching; e.g. string searches and the array was getting quite large and I was getting worried about speed as the database grows.
I have just unstalled mySQL 4.1 onto my PC (runs a dos window - that's as far as I have got), and I have just started reading the syntax & commands for SQL. Does anyone know of any good introductions/tutorials, i.e. sample projects using mySQL with an MFC C++ Visual Studio .Net 2002 program. Also I would like to populate the mySQL database with this Tab delimited file is that possible?
So any information/tutorials most welcome.
A sample project using mySQL would be great, as from web searches they seem to be problems with different versions of Visual Studio.
|
|
|
|
|
Hi!
I just killed my MSDN. But I need to continue the work now.
So I have a trivial question.
I need a messages to be send to listbox to get info about selected items and get these items too.
|
|
|
|
|
MSDN Library is on line at microsoft.com. If you are on line then you have access. If you do a search, via Google, on anthing to do with MS Windows programming, the odds are you will get links to the MSDN Library at Microsoft.
INTP
|
|
|
|
|
I am not sure that I should write this here, but...
is it possible to listen to port 135 without getting a error 10048 or aother port that windows use.
I have tried to use sockets, didn't work.
|
|
|
|
|
K.A.L wrote:
is it possible to listen to port 135 without getting a error 10048 or aother port that windows use.
No, it isn't. Of course you could use a sniffer if you want to know what's going on on the network however only one socket can listen on a given port at a given time. That's why you're not supposed to listen on well known ports (see Port Numbers (IANA)[^] or Port Assignments for Commonly-Used Services[^] for Windows specific services) unless you implement that service.
Best regards
Dennis
|
|
|
|
|
Well how does a sniffer listen on these port?
If I create a service would i then get access to them?
And Thanks
|
|
|
|
|
K.A.L wrote:
Well how does a sniffer listen on these port?
That I don't know. However if I were you I would try to find out how an existing sniffer works. Maybe you should check out WinPcap[^], the packet capture library used by the Windows version of Ethereal[^].
Best regards
Dennis
|
|
|
|
|
First of all, I assume that you know what you are doing. If you just randomlly picked port 135, then you need to learn more about networking before you continue. Since I'm assuming you know what you are doing, warnings about how doing this can have really really bad effects on your system, even making it unuseable, are redundant.
Port 135 is the dcom-scm. So you need to disable it. See:
http://support.microsoft.com:80/kb/q158508/
http://accs-net.com/smallfish/dcom.htm
Google will give you more links
Sinc
|
|
|
|
|
Well i need to learn more about networking,
I just wanted to make a program that could tell me if there was any computer download something from me
Thanks
|
|
|
|
|
K.A.L wrote:
I just wanted to make a program that could tell me if there was any computer download something from me
Well, if you start that project to learn more about networking I'd say it's a good idea. But if you just want to do it because you need a tool like that I'd say it isn't worth the trouble. A good firewall will let you know when an unauthorized process tries to listen/connect. And for detailed analysis of what's going on you can use a tool like Ethereal.
Best regards
Dennis
|
|
|
|
|
|
Hi all.
I got a simple problem using CString, but I can't find a good solution for it.
I have a Database with a field (10 Bytes long) as a CString (using MFC ODBC).
and I need to get and set the Values of each byte.
Example:
CString text = "ABCDEFGH90"; I can get the values by using text.GetAt(0);
But if I code a staement like this I just get a lot errors..
if (text.GetAt(0) == "A") <- compiler error
or if I like to set a value
text.SetAt(0, "T") <- compiler error
What is the best way to do it without having trouble to convert the hole stuff to const char and back ??
Big THX. for helping me out !!!
|
|
|
|
|
"A" and "T" are strings not characters.
'A' and 'T' represent character values.
if(text.GetAt(0) == 'A)) <- no error
text.SetAt(0,'T') <- no error.
INTP
|
|
|
|
|
This program reads .bmp files and like types them in a game screen. I would like it so to be activated by dragging a crosshair over the game screen so the program knows where the screen is
The game I am talking about is runescape.
This program would read the .bmp and type the word in and then press the key enter
If you would like to see a program like this I will show you
My email is dellnerd88@yahoo.com or aim is nellyeminem88
If you want me to explain it more email me
|
|
|
|