|
Russell' wrote: I'm trying every font right now
I think you are setting the font name in the "lpszFace"
"If lpszFace is NULL or empty string, GDI uses the first font that matches the other specified attributes" from msdn.
|
|
|
|
|
Courier New math both the required.
Plus:
To have constant spacing with every font must be set both lfHeight and lfWidth!!! . So you can also use many other fonts (compatible with the lfEscapement parameter)more then Courier New .
But a little problem remains:
One time that the font writes in vertical way the size of the text it is not perfecly rotated (there is a little stretch) ... propably because the pixels are not squared, but rectangular. (any trick?)
Bye bye
Russell
|
|
|
|
|
hi there
i've made an application which use a lib.
how can i build an executable file, without deliver the dll's.
how can i know which files have to be near the executable?
|
|
|
|
|
Do you want to know wwhich files your program is used?
|
|
|
|
|
hi,
i am beginner to visual c++ . so i have no idea that how can i store & Retrive data in databse using visual C++(Not MFC).
Anybody have idea that from which point i start.
i am very thankful if anybody give me proper or useful link for start.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
modified on Thursday, March 6, 2008 10:12 AM
|
|
|
|
|
Is it correct returning value from catch() block?
Can the calling function get return value when there was exception caught by try{}, catch() in called function?
Best Regards,
Suman
|
|
|
|
|
Provided that the function returns a value of that type it is correct in the aspect of C++ syntax to return a value from inside a catch block.
However, I would rather have the return statement outside the catch block since in my opinion the code would be easier to read. I would have a return value at function scope that I would assign a value inside the catch block and return it at the last line of the function.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
i want to sent ctrl+alt+delete to remote computer,
i using postmessage() API, its working fine all os except VISTA.
is there any chance to send/simulte ctrl+alt+delete in VISTA.
Anybody hav ideal,plz help me.
|
|
|
|
|
Hi,
When i am trying to build my C++ exe using /clr option, i am getting the following Link Error:
StdAfx.obj : error LNK2020: unresolved token (0A001984)......
Please could someone suggest me how to resolve this error?
Regards
Rinnu
|
|
|
|
|
Try to ask the right forum (the managed C++/CLI one).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
...and please post full error messages so we don't have to guess.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
am working on FTP wizard
I written a code to get the properties of selected file for local drive as
HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem();
{
CString selectedPath =GetLocalTreePath (hlocalselitem);
HWND hwnd = GetSafeHwnd();
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
ShExecInfo.hwnd = hwnd;
ShExecInfo.lpVerb = "properties";
ShExecInfo.lpFile = selectedPath;
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
}
which works fine.
But when I used it for remote file i.e. selectedpath is different
as i.e. using '/' but it is giving me error as please check the path
I also tried for complete URL then it gives invalid parameter for
ShExecInfo.lpFile = selectedPath;
path is : "ftp://www.ganitra.com//BannerTestPlan.jpg"
|
|
|
|
|
For <insert deity of choice>'s sake - it was only half an hour since your last request, in a different thread!! This is a volunteer site with people who do other things for a living. Be patient. And don't open a duplicate thread.
<end lecture on forum etiquette>
chetanjoshi9 wrote: path is : "ftp://www.ganitra.com//BannerTestPlan.jpg"
anyway, you don't need double slashes (//) if it is a forward slash. Doubles slashes are only needed in the string if you use a backward slash i.e. use either
"ftp:/www.ganitra.com/BannerTestPlan.jpg"
or
"ftp:\\www.ganitra.com\\BannerTestPlan.jpg"
Technically, Windows uses the backward slash although some of the APIs will accept forward slashes. I don't know off-hand if the one you're trying to use accepts / so try changing to \\.
Judy
|
|
|
|
|
hi all,
i am savitri here.good afternoon to all. in my program i want to find middle value of the string so how shall i find that value. please help me out.in VB it is like this
For ctr = 0 To 15
dout(ctr) = Asc(" ")
Next
For ctr = 0 To Len(strData) - 1
dout(ctr) = Asc(Mid(strData, ctr + 1, 1))
Next
but i want to know in VC++. in VB it is built in function but in VC++ it is not there please help me. please i am learning VC++ u all my guru's so please answer to my questions.
thanku in advance,
savitri.
|
|
|
|
|
See this[^]
savitri wrote: good afternoon to all
Time zone matters
|
|
|
|
|
Hi Experts,
I recieved HMENU from other funtion.
Could I append menu item with bitmap in it except InsertMenu().
|
|
|
|
|
Hi all,
Is there any open source application for detecting the people from the sequence of video motion of webcam. I need to detect only humans rather than objects.
Thanks in advance
|
|
|
|
|
I dont know of any open source app for people tracking, but you can build your own if you know a little bit of image processing. Open source library for image processing are available, such as OpenCV (Intel). You can also look for existing papers on human tracking on IEEE Xplore or the web.
|
|
|
|
|
I have an MFC app, I want to create a minidump .dmp file at my preferred location whenever the app crashes.
Any ideas ? Do I need to make some code change or is it some Windows setting or BOTH ?
Regards
Cage
|
|
|
|
|
|
Thanks a ton Roger!
|
|
|
|
|
I am working on FTP wizard
I written a code to get the properties of selected file for local drive as
HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem();
{
CString selectedPath =GetLocalTreePath (hlocalselitem);
HWND hwnd = GetSafeHwnd();
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
ShExecInfo.hwnd = hwnd;
ShExecInfo.lpVerb = "properties";
ShExecInfo.lpFile = selectedPath;
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
}
which works fine.
But when I used it for remote file i.e. selectedpath is different
as i.e. using '/' but it is giving me error as please check the path
I also tried for complete URL then it gives invalid parameter for
ShExecInfo.lpFile = selectedPath;
|
|
|
|
|
please post the path you specified for remote file
|
|
|
|
|
path for ftp file to which I want to get properties
ftp://www.ganitra.com//BannerTestPlan_1.jpg
|
|
|
|
|
::CoInitialize(NULL);
m_adoConn.CreateInstance(__uuidof(Connection));
m_adoConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\1.csv;Extended Properties=csv;HDR=Yes;FMT=Delimited","","",adModeUnknown);
m_adoRec.CreateInstance (__uuidof(Recordset));
m_adoConn->CursorLocation = adUseClient;
m_adoRec->Open("select * from c:\\1.csv",m_adoConn.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);
error message:
Unknown error 0x800A0E7D
thank
Blog:
http://taotesea.spaces.live.com
|
|
|
|