|
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
|
|
|
|
|
hi,
i am doing contacts of listbox,in the listbox there are contact names,each contact name beside there are three icons that are call icon,videocall icon,chat icon and also each name of the bottom three icons they are home icon,office icon,mobile icon,my task is that dispaly a tooltip on each and every icon.how to get that send me any link please help me,
thanks in advance.
maheshkanth
|
|
|
|
|
Take a look at the listview notification messages, there are many there that would do the job, like NM_HOVER , LVN_HOTTRACK and LVN_GETINFOTIP . Most of it depends on how you have created the listview, what styles you applied and how you added icons.
|
|
|
|
|
CToolTip Class on Code project
|
|
|
|
|
Hi all friends .
I have handle of a window . How I can handle any( example : WM_CREATE) message of it .
|
|
|
|
|
You will need to subclass the window
|
|
|
|
|
|
Hello
In addition to what has been said, Here is an article about Subclassing[^]
Regards
|
|
|
|
|
i wrote the same code both in VISUALL C++ AND C#. in both cases, the OPTIMIZED SWITCH is turned on. the results: in C#, around 300 msec, in c++ less then 1 msec.
what is happening here??? in general i need to process 4 megabyte each 250 msec, and it looks likt c# is not the answer... or maybe there is another optimize switch in c# i am not aware of (beside the one in the BUILD TAB). can someone please advice? is it true c# is not good for real time?
THE CODE in visual studio 2005 c#:
===================================================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics ;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
byte []byte1=new byte[2097152*2];
byte[] byte2=new byte[2097152*2];
Stopwatch sw=new Stopwatch ();
sw.Start ();
for(int i=0;i<2097152*2;i++)
{
for(int y=0;y<64;y++)
{
if(byte1[y]==byte2[y])
//if (*(bytes1+i)==*(bytes2+i))
{
}
}
}
sw.Stop ();
Console.Write ("{0}",sw.ElapsedMilliseconds ) ;
Console.ReadKey ();
}
}
}
THE CODE IN VISUALL C++ 2005:
===============================
#include "stdafx.h"
#using <system.dll>
#using <system.drawing.dll>
#using <system.windows.forms.dll>
using namespace System;
using namespace System::Diagnostics;
using namespace System::Windows::Forms;
using namespace System::Drawing;
using namespace System::Drawing::Drawing2D;
int _tmain(int argc, _TCHAR* argv[])
{
char *bytes1=new char[2097152*2];
char *bytes2=new char[2097152*2];
Stopwatch^ stopWatch;
stopWatch = gcnew Stopwatch;
stopWatch->Start ();
//for (int u=0;u<10000;u++)
for (int i=0;i<2097152*2;i++)
{
for (int y=0;y<64;y++)
{
if (bytes1[y]==bytes2[y])
//if (*(bytes1+i)==*(bytes2+i))
{
}
}
}
long ii;
ii =(long)stopWatch->ElapsedMilliseconds;
stopWatch->Stop ();
printf("%d",ii);
//ElapsedMilliseconds Ticks
return 0;
}
|
|
|
|
|
Hi i am a chiptuner that programs my own software for cars..
Now i want to start writing small interfaces and checksumm algorytm, and i have just started to look at the visual c++
Anyone that can help me getting started with this?
I look forward to getting started
Thanks for all help
Regards
Frank
|
|
|
|
|
Where do you want to start? The first thing I sugest you do is get a C/C++ compiler. I hear Microsoft allows one version of Microsoft's Visual Studio to be freely downloaded... try to find if it is true, and if it is then go for it.
Then I would focus on what you will want to do. For interfaces I recommend MFC (because you are into C++, because if you were into C# I would recommend .NET). For checksum algorithms... I suspect you already know what you want the applications to do, right? Checksum algorithms, in C/C++, should come after you are comfortable dealing with memory, pointers, and the like. For that I recommend you read "Teach Yourself C++ in 24 hours". It is a very good book, and it took me 24 hours to read!
Then, at some point, I guess you will want to work with disk files, and serial ports (to send data out of the PC). If this is the case then don't worry, C/C++ and Windows allow very easy access to disk files, and Windows allows easy access to the serial port.
I sugest you come back with specific questions after you get through the first steps: getting a compiler and reading a book (or equivalent web tutorials, if you are not new to programming).
I hope this helps,
Rilhas
|
|
|
|
|
Hi Rihas
Thanks for the replay
Yes you are right.. there is a free fully version for 90 days.
And first is problem that you need to find out of the program visual c++.
I have started to look on it and it looks very interresting.
Where did you buy the book?
Frank
|
|
|
|