|
"Increase the size of Static Text Control "
Yes I did it, and i saw that Text when i design,
But when i compile my program, the compiler display a warning :
"title string too long; truncated at 256"
and then i runed my program,:
only 256 first character is displayed.
Why ???
|
|
|
|
|
i think that 256 character limit is due to the resource editor, not to the abilities of the static control itself.
try setting the text with m_myStaticControl.SetWindowText("...");
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
you can change font from static control
|
|
|
|
|
you wrote"you can change font from static control"
how to do that ?
could you tell me step by step ?
|
|
|
|
|
you can declare one font with createfont
and then assign this font to control
in this parameter from createfont you can set size from font
|
|
|
|
|
I have developed an application in C++, and it's time to deploy it. I am using Visual Studio 2003 setup project to deploy it. It's easy to create a simple setup, but customizing the setup is a nightmare, for example, to add a page that displays a log that is generated by an external application that is run during the installation.
During uninstallation, it says that I should close MSN messenger, Windows Messenger and Notepad before uninstalling.
Remove Previous Version also does not work consistently, sometimes, it removes the previous version automatically, at other times, it just gives a messagebox telling that I should remove the earlier version from the control panel.
Am I missing something or are these bugs that you have encountered earlier?
Also, the documentation for setup projects seems to be limited. Could you point me to some good articles on creating setup projects with a fair level of customization?
|
|
|
|
|
inno setup will release your headache.
Do you know Java? need a better Java IDE? then use SyncJEdit.
A graphic tool (Image-Copier) offers you over 33,000 programming icons!
The world unique Software Label Maker (Paper-Label-maker) is waiting for us ...
optimizing your MS-Html-Help-contents automatically by the powerful tool (Hyper-Care).
All are free if you simply click this LINK.
|
|
|
|
|
I have been using Inno setup for other projects and am happy with it. But for this case, I need to include merge modules into the setup, which, I do not think, is possible with Inno setup. That is why I resorted to the Visual Studio setup in the first place.
|
|
|
|
|
Hello together,
I have a problem with a Memo-Field or a Binary-Field in Access.
In the Release-Version all is OK, but in the Debug-Version (VisualStudio 5) the comparison of the two pointers (look at the code) failed.
<br />
void AFXAPI AfxLoadField(CRecordset& rs, UINT nField,<br />
void* pvField, long* plLength)<br />
{<br />
CFieldInfo* pInfo = &rs.m_rgFieldInfos[nField - 1];<br />
<br />
rs.SetFieldStatus(nField - 1, pInfo->m_bStatus);<br />
<br />
if (!rs.IsFieldStatusNull(nField - 1))<br />
{<br />
if (pInfo->m_nDataType == AFX_RFX_BOOL ||<br />
pInfo->m_nDataType == AFX_RFX_BYTE ||<br />
pInfo->m_nDataType == AFX_RFX_INT ||<br />
pInfo->m_nDataType == AFX_RFX_LONG ||<br />
pInfo->m_nDataType == AFX_RFX_SINGLE)<br />
{<br />
AfxCopyValueByRef(&pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);<br />
}<br />
else<br />
{<br />
AfxCopyValueByRef(pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);<br />
}<br />
}<br />
else<br />
*plLength = SQL_NULL_DATA;<br />
<br />
#ifdef _DEBUG<br />
if (pInfo->m_nDataType == AFX_RFX_BINARY)<br />
{<br />
pvField = ((CByteArray*)pvField)->GetData();<br />
}<br />
<br />
if (pInfo->m_pvBindAddress != pvField)
{<br />
TRACE1("Error: field address (column %u) has changed!\n",<br />
nField);<br />
ASSERT(FALSE);
}<br />
#endif // _DEBUG<br />
}
This is the Problem:
AfxCopyValueByRef(&pInfo->m_pvDataCache, pvField,<br />
plLength, pInfo->m_nDataType);
My Code:
RFX_Binary(pFX, _T("[Polygon]"), m_Polygon, 65536);
m_Polygon is the CByteArray.
By AfxCopyValueByRef the pointer pvField sometimes change the adress.
pvField is a pointer on the CByteArray.
Can someone help me ???
tino
|
|
|
|
|
Nobody knows anything, or can give me a tip.
|
|
|
|
|
I want to use library DirectShow to interact with WebCam.Please help me
aloha
|
|
|
|
|
It is a very complicated matter, which one need to read and learn more about.
My advise to you is to start reading the concept on how Direct show works (graph, filters, pins)
and then try to implement interaction with webcam.
there is an easier way to interact with webcam, you can use Video For Windows (VFW for short).
One good class that wraps VFW and do all the work for you is VFWImageProcessor. search code project for it...
good luck hope this helps
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I'm doing project this subject, advise: build a program on visual c++, when I run this progam, will perfom all pictures which Webcam capture
I want to have source code of this progam, but not find
aloha
|
|
|
|
|
There's a sample called AMCap in the Windows SDK which does exactly that. Read through it to see how it works.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I'm doing project this subject, request: build a program on visual c++, when I run this progam, will perfom all pictures which Webcam capture
I want to have source code of this progam, but not find
aloha
aloha
|
|
|
|
|
Hi,
I am using DeviceIoControl() to create partition using IOCTL_DISK_SET_DRIVE_LAYOUT parameter. The code is working fine to create primary partition. But if i want to create logical drive in extended partition i don't know that whether i have to write two entry or single entry in the DRIVE_LAYOUT_INFORMATION structure(one for extended partition info and the other for the logical drive to be created) and how to find out in which entry of DRIVE_LAYOUT_INFORMATION structure i have to write this information.
Thanks.
|
|
|
|
|
I have a small question :
what function is used to get name of my computer ?
|
|
|
|
|
Surivevoli wrote: what function is used to get name of my computer ?
GetComputerName()...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
but i don't know use parameter in that funtion :
GetComputerName(...);
could you help me ???
|
|
|
|
|
Surivevoli wrote: GetComputerName(...);
TCHAR szCompName[MAX_PATH];
GetComputerName(szCompName,MAX_PATH);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi ThatsAlok,
I thnik he can read from registry
|
|
|
|
|
could you tell me do that ?
|
|
|
|
|
you can read this value with functions registry but you should know detaily from path
|
|
|
|
|
Yes, but he shouldn't. Using the proper APIs is much less likely to fail in odd ways.
|
|
|
|