|
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.
|
|
|
|
|
Hi Shog9,
yes use functions api is easy I said that only its possible
|
|
|
|
|
WhiteSky wrote: I thnik he can read from registry
HI Buddy,
Yeah, But i believe its better if you use Proper Api!,
"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,
use GetComputerName(...) Api or gethostbyname(...) Api.
cheers,
uday.
uday kiran
|
|
|
|
|
but i don't know use parameter in that funtion :
GetComputerName(...);
could you help me ???
|
|
|
|
|
kiran janaswamy wrote: use...gethostbyname(...) Api.
This function does not retrieve the host name. It uses the host name to retrieve host information such as IP address.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
hi,
sorry it is gethostname(...) Api.
cheers,
uday.
uday kiran
|
|
|
|
|
Could you tell me : How to get my IP address ???
What's happened if my computer don't connect to the Internet or LAN, or i don't install IIS ???
And:
If i connect over LAN,
how to get other Computer name if i know its IP
and how to get other computer's IP if i know its name ?
|
|
|
|