|
By the way how are you using CxImage library. Have you included the entire source code into your project or are you dynamically/statically linking to it as a dll/lib?
I am asking these because the linker says it's a local symbol.
And this is what MSDN has to say on this warning...
The symbol was both exported from and imported to the program.<br />
<br />
This warning is generated by the linker when you declare a symbol by using the __declspec(dllexport) storage-class attribute in one object file and reference it by using the __declspec(dllimport) attribute in another.<br />
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
It's a statically linked library - no dll or cpp files, only headers and lib files.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Then the library is compiled badly. When it is compiled into a static library, make sure that no __declspec(dll{import,export}) is used.
|
|
|
|
|
The library came with the code of one of my colleagues, we checked and it seems he has compiled it with dllexport. He'll recompile it when he has time (probably tomorrow).
Well, case closed
Thanks for the help everyone.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
May be you've explicitly specified to generate lib file in your linker settings.
Take the linker settings and check for this /implib switch. For instance most probably like - "/implib:"Debug/YourLib.lib" . Just remove it and problem will be solved.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I checked them, there's no /implib switch.
Here's the linker settings:
----------------
psapi.lib shlwapi.lib htmlhelp.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/MyProject.pdb" /debug /machine:I386 /out:"Debug\MyProject.exe"
----------------
and the compiler settings:
----------------
/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"Debug/MyProject.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
----------------
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi,
I m very new in directx. I have written a
small program in D'x, drawing a triangle
[using vc++].
I have taken a dialog, named MyDialog,now
there I have one static control.I want to
show the triangle in that static control.
I have written all the directx related
code,
init(), render(), //clean()
I am calling those function from onpaint()
plase tell me, what to do if i want to show
them in my static control.
Thanks,
Koushik
|
|
|
|
|
Hello evry body,
Is it possible to develop a Audio/Video conferencing app with RTC (Real Time communication) ?
At least if only peer to peer sessions are allowed, is it possible to have two or more simulataneous Audio/Video sessions ?
Thank you in advance.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: Is it possible to develop a Audio/Video conferencing app with RTC (Real Time communication) ?
Yes. You still have to handle acquisition, compression, decompression,
and rendering of audio and video streams.
hINTModuleState wrote: At least if only peer to peer sessions are allowed, is it possible to have two or more simulataneous Audio/Video sessions ?
Yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you M.Mark,
My previous question has developed into two questions, I am sorry , but I appreciate any mere further clarification you can give me since I am in an decision stage, and that it is already that I wait for response from Microsoft since I didnt found the text answer in the Internet.
I know that Live Messenger is built on RTC, but since I have x64 I never succeeded to install it and see the possible things that I can do with RTC.
I am suspicious becuase I didn't find something like an VideoConf session type in RTC api, only IMMultyParty session type, which is rather about text communication for many clients together but not audio/video integrated.
My two questions follows the two parts in your response.
I do'nt understand what would be the diffrence if developing videoconf with RTC and requiring to implement on my own the aquisition, compression,etc, the diffrence between basing on RTC and developing something without the integration of RTC !
My second question is :
is it that then only peer to peer Audio/video session are allowed ? (only for text messaging, that the server enables the automatic brodcast of text lmessages to all clients within an IM MultiParty session) ?
May be "peer to peer Audio/Video" is n,ot the term that I have to employ, becuase what I require for a Audio/Video conferencing, is that when A requests a conf with B and C, then not that I would require A send to send an Invite to B then to C, then somehow A tells B that C is included and C that B is also a particpant and consequenlty B and C invite each other, but rather that signaling is done by server which sends the multiple ivites accordingly,..while in too cases Audio/video stream is donne peer to peer.
And finally can please point me to an exsiting SIP client built on RTC wich features the simultaneous AudioVideo Session ?
Thank you in advance.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: I do'nt understand what would be the diffrence if developing videoconf with RTC and requiring to implement on my own the aquisition, compression,etc, the diffrence between basing on RTC and developing something without the integration of RTC !
RTC is just the transport protocol - a way to handle connections and
transfer data across the network. You still have to actually get the
data to send and render it on the receiving end.
An important thing to consider is connectivity. Having the required
RTP ports available through firewalls is not always possible.
Microsoft may use RTP in their communication products, but they
also run their own servers so peers can connect without firewall issues.
This is a big topic... You may want to study articles like these:
Microsoft Real-Time Communications: Protocols and Technologies[^]
RTP: A Transport Protocol for Real-Time Applications[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
multi video conferensing does not exist in Microsoft RTC SDK.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Fascinating
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
It is the sad reply I got from Microsoft today.
When I saw the source code of rtsample, a smaple inside RTC SDK, I find it using only one audio/video chat session at a time :
This is a source code extract :
if (CRTCAVSession::m_Singleton != NULL)
{
pSession->Terminate(RTCTR_BUSY);
SAFE_RELEASE(pSession);
return;
}
I didn't new that this was becuase of an inherent limitation of the SDK itself until recently !
I am dead, I wo'nt be able to develop a videoconferencing application..
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
I went through this too.
I do multimedia software with live video/audio streaming.
I looked at (and tried) any free and/or open-source solutions
I could find for the transport and none performed the way I needed.
RTP seemed like a good idea since it's a standard protocol, but
port requirements made it useless to me. I ended up writing my own.
This is big money business these days so finding free solutions isn't easy
(although it may be getting easier since it's been around a while now).
The best I can recommend is research. You need acquistion, compression,
transport, decompression, and rendering - all of which need to perform
fairly well, especially with video.
Acquisition and rendering can be done with stuff included with Windows -
no problem.
Realtime codecs are a little harder but there's free ones available,
both from Microsoft and open-source.
For the transport, sockets can be used. TCP/IP is possible (contrary to
what some papers from the 90's state) but UDP does perform better. With
UDP you need to deal with potential packet loss and packets arriving out
of order. In any case, the most difficult thing to deal with (at least it
was for me) is clock drift. The hardware clock speeds on different machines
vary enough that one machine gets ahead or behind the other fairly quickly
so that has to be dealt with as well.
Just my 2 cents,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Oh yes, you are right on saying that this is big money business today...
Currently, I am trying to see what I can do with DirectShow : it has evrything for me except that I need to find an RTP sender/receiver DirectShow filters. Hence I can create a graph with a capture filter, linked to a codec, then to an RTP Sender, and to the other side : an RTP receiver and back the chains of filters to the video renderers and audio player.
Thank you for your messages indeed.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Hi,
I want to write a program for Arabic language.But arabic is written from rigth to left.To set this property, I should set the WS_EX_RTLREADING ex-style.But in the msdn there is an information for this property like that:
" If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the window text is displayed using Right to Left reading-order properties. For other languages, the style is ignored and not treated as an error. "
When I set WS_EX_RTLREADING nothing changes.What is the meaning of shell language? If it is not Arabic how can I set the shell language to Arabic?
I asked a similar question before but I couldn't get an answer.
Thanks
ibrahim
|
|
|
|
|
Did you set your system locale to Arabic?
In order to do that, you have to install support for these languages (Regional and Language Settings -> Languages -> Install files for complex script and right-to-left languages).
After that, go again to Regional and Language Settings -> Advanced -> Select a language to match...
|
|
|
|
|
Yes,I did everything you said.But it is not working still.I want to change the language (so the writing order) at the runtime.I am writing this code can you check if it is right.Heye I want to change the writing order of an edit box;
CRect clientRect;
m_edit.GetWindowRect(clientRect);
ScreenToClient(clientRect);
SetWindowLong (m_edit.m_hWnd,
GWL_EXSTYLE,
GetWindowLong(m_edit.m_hWnd,GWL_EXSTYLE) & ~WS_EX_RTLREADING);
m_edit.SetWindowPos(&wndTop,clientRect.left,clientRect.top,clientRect.Width(),clientRect.Height(),SWP_SHOWWINDOW);
Thanks,
ibrahim
|
|
|
|
|
I think you also have to set the correct font and character set for your edit control. Something like this:
CFont fnt;
LOGFONT lf;
::ZeroMemory(&lf, sizeof(lf));
lf.lfHeight = 18;
lf.lfCharSet = ARABIC_CHARSET;
::lstrcpy(lf.lfFaceName, "System");
fnt.CreateFontIndirect(&lf);
GetDlgItem(IDC_EDIT)->SetFont(&fnt);
fnt.Detach();
|
|
|
|
|
code -----
CMyDialog dlg;
whiel(true)
{
dlg.Create( IDD_DLG_MYDLG, this);
dlg.DestroyWindow();
Sleep(50);
}
---------------------------
this code is not normal code, but have problem.
this code run. and look task manager,
some time memory leak for 4kb.
what up this problem ??
|
|
|
|
|
gamja wrote: whiel(true)
Typo...
gamja wrote: this code is not normal code, but have problem.
and why isn't the code normal. Everyone here may have used this n number of times
gamja wrote: some time memory leak for 4kb.
Did you check the leak were not from the internal MFC files
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Yes, MyDialog is clean CDialog subclassing class,
no member variable, no function
i think this problem IS RELATED TO memory fragmentation.
|
|
|
|
|
gamja wrote: what up this problem ??
Why do you assume there is a problem?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
the formula I have doesn't work well does anyone have an azimuth formula for two points (lat and longs) on earth?
I don't need the code just formula
Thanks
|
|
|
|