|
Hi,
Is any one aware of a technique of easily putting a breakpoint in every function in a solution (MSDev.Net 2003).
I'm currently having to make some modifications to the Firebird 1.5 source code and finding where it is called when a user calls connection.setAutoCommit(false); from a Java Servlet is turning out quite time consuming.
Thanks
Tom
|
|
|
|
|
Hey guys,
Im working with winsocket in one of my projects and I have some questions regarding Windows Sockets. I see that it is used to send data over the TCP/ IP network protocol but why is it specifically called Windows socket? If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM? If anyone has any links that can give me the basic understanding of what goes on in the Windows Socket it would be greatly appreciated
Thanks,
Jay
|
|
|
|
|
WinSock is just the library name. It is basically Microsoft's implementation of the Berkeley sockets that are used on *Nix systems. From a development point of view, there is very little different in the way of method calls, arguments, etc (outside of initializing and freeing the library). When using it, you can communicate with anything that talks TCP/IP, regardless of the OS. Just make sure you keep byte-ordering in mind when programming.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Jay03 wrote: If I try running two different simulations which interact with one another over a network, do both of the simulations have to be running on the WINDOWS OPERATING SYSTEM?
No. That's the beauty of TCP. Neither end has to be concerned with the other (e.g., Windows <-> Unix <-> OS/400). They just both have to speak the same language. This is a somewhat simplified explanation. See here for more on TCP. See here for more on the OSI model.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
TCP doesn't inherently care about different architectures, but some care (see ntohl and htonl) has to be taken to make sure that the data you send (you just hand the functions a hunk of memory) isn't architecture / OS dependent.
earl
|
|
|
|
|
Great answers guys....... thanks a lot!
|
|
|
|
|
Hi,
I'm an embedded C programmer trying to migrate a set of makefiles from using VC6 tools (with msdev.exe) to VC++ Express + Platform SDK (with vjproj.exe).
I find vcproj is rather underdocumented. Could someone please help me translate a few lines in the makefiles?
Old: msdev pname.dsw /make ALL /clean
New: vcbuild pname.vcproj /clean
... Could you please tell me if these lines accomplish the same thing? I think using "ALL" told msdev to make all the available configurations, but I can't find an equivalent with vcbuild.
Old: msdev.exe pname.dsw -ex macroName /nologo
New: vcbuild pname.vcproj ???????????????????????
... The -ex flag tells msdev to invoke a macro. I think if I were using VC7 and devenv.exe that I would use /command. I can't find anything similar for vcproj.
Old: msdev pname.dsw /make "FileName - Win32 $(MSDEV_CONFIG)"
New: vcbuild pname.dsw /rebuild /OUT:FileName "$(MSDEV_CONFIG)|Win32"
... I am using /rebuild because I read a post/answer that indicated vcbuild has problems with pre build events, generated cpp files, or projects which have more than one level of depencency, and that /rebuild should alleviate "most" issues. Do you know if this is still the case? Also, am I translating the use of FileName correctly?
Thanks!
|
|
|
|
|
jasper77 wrote: Old: msdev pname.dsw /make ALL /clean
New: vcbuild pname.vcproj /clean
... Could you please tell me if these lines accomplish the same thing? I think using "ALL" told msdev to make all the available configurations, but I can't find an equivalent with vcbuild.
Old: msdev.exe pname.dsw -ex macroName /nologo
New: vcbuild pname.vcproj ???????????????????????
... The -ex flag tells msdev to invoke a macro. I think if I were using VC7 and devenv.exe that I would use /command. I can't find anything similar for vcproj.
Old: msdev pname.dsw /make "FileName - Win32 $(MSDEV_CONFIG)"
New: vcbuild pname.dsw /rebuild /OUT:FileName "$(MSDEV_CONFIG)|Win32"
... I am using /rebuild because I read a post/answer that indicated vcbuild has problems with pre build events, generated cpp files, or projects which have more than one level of depencency, and that /rebuild should alleviate "most" issues. Do you know if this is still the case? Also, am I translating the use of FileName correctly?
Well, I've indentified one problem: the new lines should use .sln instead of .dsw. However, the rest of my questions remain.
Thanks!
|
|
|
|
|
Hello,
I have a dialog with an OK and Cancel button, for example. Until a certain event takes place, the OK button is disabled, and the Cancel button is default (ie: has the thicker black outline). When the event takes place, and the OK button becomes enabled, I want it so that the OK button instantly becomes the only default button. With what keywords can I accomplish this?
Thanks
|
|
|
|
|
use <a href="http://msdn2.microsoft.com/en-us/library/7sd15kw3.aspx" rel="nofollow">CDialog::SetDefID()</a>[<a href="http://msdn2.microsoft.com/en-us/library/7sd15kw3.aspx" target="_blank" rel="nofollow" title="New Window">^</a>]
for instance :
this->SetDefID(IDOK);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
can you please be more specific, I'm not sure how you mean to implement this.
|
|
|
|
|
the this is the pointer within the CDialog class in which the processing event were caught.
i mean, if you're switching the default button when typing something in an edit box for instance, you override the EN_CHANGE message of that edit box, and as this editbox belongs to the dialogbox, the this pointer refers to the dialog box.
have you even copied the code to try it ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
aafcls wrote: can you please be more specific, I'm not sure how you mean to implement this.
Just call SetDefID(IDOK) . It's not any harder than that.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi.
I am writing a console app that needs to be invisible. What is the easiest way to make sure that the Console window doesn't flash on the screen?
Cheers
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
The easiest way to do this is to change your main function to WinMain. And change the SubSystem in the Linker/System panel from Console to Windows. Recompile and you are done.
AliR.
Visual C++ MVP
|
|
|
|
|
Hi Ali,
Thanks very much- that worked perfectly.
Cheers
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Hello everybody,
I have developped a Visual C++ application that drives a serial COM port (9600 8 N 1).
When I use the PC's COM port to dialog with the hardware, the application works correctly; but when I connect the hardware to a USB port via a profilic USB to serial adapter the application shows a error message and closes abruptly.
Does somebody encountered such a problem ? or any idea about how to solve or debug ?
Thank you in advance,
AG
|
|
|
|
|
|
It shows the windows error dialog and when I look the details I get the following information :
EXE NAME="ERW.exe" FILTER="GRABMI_FILTER_PRIVACY"
MATCHING_FILE NAME="ERW.exe" SIZE="454656" CHECKSUM="0xA7F4B92D" BIN_FILE_VERSION="1.4.5.0" BIN_PRODUCT_VERSION="1.4.5.0" PRODUCT_VERSION="1.4.5" FILE_DESCRIPTION="Programmeur ERW" COMPANY_NAME="ELA Innovation" PRODUCT_NAME="ELA Read Write" FILE_VERSION="1.4.5" ORIGINAL_FILENAME="ERW.exe" INTERNAL_NAME="ERW.exe" LEGAL_COPYRIGHT="(c) ELA Innovation. Tous droits réservés." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.4.5.0" UPTO_BIN_PRODUCT_VERSION="1.4.5.0" LINK_DATE="05/16/2006 14:07:44" UPTO_LINK_DATE="05/16/2006 14:07:44" VER_LANGUAGE="Français (France) [0x40c]"
MATCHING_FILE NAME="Uninstall.exe" SIZE="35453" CHECKSUM="0x1CDEBCED" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="01/28/2003 14:21:01" UPTO_LINK_DATE="01/28/2003 14:21:01"
EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
MATCHING_FILE NAME="kernel32.dll" SIZE="1048576" CHECKSUM="0x60165972" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="DLL du client API BASE Windows NT" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Système d'exploitation Microsoft® Windows®" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. Tous droits réservés." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x10626E" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/04/2004 07:54:15" UPTO_LINK_DATE="08/04/2004 07:54:15" VER_LANGUAGE="Français (France) [0x40c]"
I presume this information is not usefull !!!
-- modified at 11:01 Wednesday 19th July, 2006
|
|
|
|
|
Uuuh ??
Can you be more specific ?
algo_2112 wrote: when I look the details
Where do you look at these details ?? And what is this information ?
I suppose the problem is simply that you cannot open the COM port (because you gave the wrong port number for example) and that you have a NULL handler that you try to use.
Did you use your debugger to see what's happening exactly ? This must be the first reflex to have ! Whenever you have a problem, use your debugger FIRST.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
The application works correctly for a while then it suddenly closes and shows the classical windows error dialog inviting you to send a repport.
I can't debug because the application works correctly when I use the computer used for developping the application (where Visual Studio runs). The problem appears when I run the App on a laptop computer.
I was thinking about timing problems. Because I don't use the RS232 control signals DTS,...
-- modified at 11:48 Wednesday 19th July, 2006
|
|
|
|
|
I heard from a developer of such devices (USB to Serial) that they were (1) very difficult to do and (2) most of them on the market don't work all that well.
Take this for what it's worth, but you may be hitting limitations of the device.
Have you considered periodically closing and reopening the connection? This may delay the issue...
earl
|
|
|
|
|
Hi
I m debugging a code which calls the fucntion SetFilterCriteria of SAX.
I want to know how the SetFilterCriteria function works in C++. I couldn't find a good example of it in MSDN. Hope someone knows abt it. Please reply asap.
Thanks in advance.
|
|
|
|
|
Hello everyone,
I read some beginner materials for C/C++ cross-development environment, which consists a host machine and a target machine. The host machine can produce binary executable code for the target machine, which has a different hardware architecture compared with the host machine. For example, the host machine can be x86 CPU, but the target machine can be ARM CPU.
How mysterious it is! I am wondering what mysterious things do the host machine have in order to produce the binary code for a different hardware architecture machine. I think the host machine should contain,
- compiler/linker which works on host system but produce binary output for target system;
- .h header files for target system;
- dynamic library for target system, like .DLL for Windows and .so for Linux;
- shared library for target system, like .lib for Windows and .a for Linux.
Not sure whether my guess is correct. Any comments?
thanks in advance,
George
|
|
|
|
|
George,
What you're talking about is embedded software. This is how computer chips control many things you don't think about as computers, from gas pumps and washing machines to mobile phones to airplanes and submarines. I've seen one claim that more than 90% of CPU's are in embedded devices.
The host machine must have:
1) A cross compiler; compiles and links on host PC, produces binary output for target system.
2) ... well, that's all it must have, actually, beyond what you typically find on a PC.
You could download the binaries from the host to the target via several different mechanisms, such as USB or serial. "Bringing up a board" to the point where it's ready to blithely program, compile, download, and run, is a major effort by itself, but kits are available for trying it out.
You can write code in any language that is supported by a cross compiler for the target; the most popular language in embedded systems is C, and then there's C++, assembler, and Java (J2EE). I think there's even a perl for embedding. The target system may (but not always) run a Real Time Operating System, or RTOS. MS's venture into this arena is the WinCE RTOS. See http://www.embedded.com/ for more info than you probably want right now, or the book "Programming Embedded Systems in C and C++" by Michael Barr for a walkthrough of a particular project using a particular kit. One of the first achievements is blinking an LED on the board.
|
|
|
|