|
|
Hi,
I have a client application in which i first do a Create() and then Connect() to connect to my server application.
The problem is that even if i dont start the server application, i get the Connect() return value as WSAEWOULDBLOCK and no other error value.
How do i determine correctly whether the server is actually available or not ? Am i doing anything wrong ?
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
hi there
I'm a beginner in .net enviroment. I try to make a simple database application like this
http://www.functionx.com/vcnet/data...ridbinding3.htm
it's work's slowly. i'm waiting 5 seconds to make a simple select interogation. i have 3 entry's in that table
why that. what to do??
|
|
|
|
|
Did you see examples in codeproject about databse
|
|
|
|
|
Hi,
I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel.
Can anyone please help me out with that ?
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
What I do generally (but maybe it's not the cleanest solution) is to put a picture control and reduce its vertical size to the minimum. Then I open the property dialog (right click on the control -> property) and I modify the style to be sunken. Like that you have a nice line.
|
|
|
|
|
Thanks Cedric. that's a pretty nice trick.
Thanks a lot.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
CoolASL wrote: draw a horizontal line in a dialog
You can also do this:
HDC hdc=::GetDC (m_hWnd);
::MoveToEx (hdc,10,10,NULL);
::LineTo (hdc,100,10);
::ReleaseDC (m_hWnd,hdc);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
You better use group control
you can group the set of controls with this.
|
|
|
|
|
thanks man.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
or you can use from a Static control with set Type to Etched Horz
|
|
|
|
|
hi WhiteSky..
Thanks for the response.
Sorry, i couldnt get that property.
Can you please specify which VS version you are using.
I am using 2003.
Or is it that i am not looking in the right place.
Thanks.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
When you insert picture control in your dialog then in property window set parameter Type->Etched Horz
|
|
|
|
|
CPen pen(RGB(0,0,0));
CClientDC ccd(this);
ccd.SelectObject(&pen);
ccd.MoveTo(0,240);
ccd.LineTo(x,y);
|
|
|
|
|
I want to create the Folder for keep the file that run by my project ,what the function use for this issue.
|
|
|
|
|
You can use the CreateDirectory[^] API function for this.
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
|
It's not a really question about programming issue it's about visual studio problem.
I want to use auto spaces, for instance is I write:
a=1;(without spaces).
I want it automaticly to be:
a = 1;(with spaces).
I tried to find this option but I haven't found(I'm talking about vs 2005 pro)it.
Can anyone tell me please how can I activate this option?
Thank you!
Semion_N
|
|
|
|
|
There is no default setting for such a thing, but it is possible to create a macro to do the job for you. A macro is coded using VB script and loaded into VS, you can set them to run continuosly or on command. Do a search for Vs and macros on google, you will find many examples.
|
|
|
|
|
OK,thank you!
SnaidiS(Semion)
|
|
|
|
|
I assume you must have used, or discovered, this for C# and are looking to do the same thing for C++, right?
C# has options for this (Options->text Editor->C#->Formatting) but C++ doesn't. No obvious reason for the difference! Once again C++ lags behind in IDE support.
Anyway, like you I like to see white spaces around operators, etc. Lack of use of whitespace is one of my pet hates in reading C-family code. Less of a problem in VB because of the auto-spaces that it's had for ages.
Kevin
|
|
|
|
|
Yeah I saw it on C#
and thank you for the answer!
SnaidiS(Semion)
|
|
|
|
|
" " ?
|
|
|
|
|
Hello everyone,
I am confused about the meaning and function of -fpic and -fPIC option of gcc. I am more confused when after reading the manual of gcc (for example, what means PIC, GOT, constant addresses, etc.). Could anyone explain to me what are their functions in easy to understand words?
Here are the descriptions from gcc manual, which makes me confused.
--------------------
-fpic Generate position-independent code (PIC) suitable for use in a shared library,
if supported for the target machine. Such code accesses all constant addresses
through a global offset table (GOT). The dynamic loader resolves the GOT
entries when the program starts (the dynamic loader is not part of GCC; it
is part of the operating system). If the GOT size for the linked executable
exceeds a machine-specific maximum size, you get an error message from the
linker indicating that ‘-fpic’ does not work; in that case, recompile with ‘-fPIC’
instead. (These maximums are 8k on the SPARC and 32k on the m68k and
RS/6000. The 386 has no such limit.)
Position-independent code requires special support, and therefore works only on
certain machines. For the 386, GCC supports PIC for System V but not for the
Sun 386i. Code generated for the IBM RS/6000 is always position-independent.
-fPIC If supported for the target machine, emit position-independent code, suitable
for dynamic linking and avoiding any limit on the size of the global offset table.
This option makes a difference on the m68k, PowerPC and SPARC.
Chapter 3: GCC Command Options 193
Position-independent code requires special support, and therefore works only
on certain machines.
--------------------
thanks in advance,
George
|
|
|
|