|
Are you getting error during linking time? If so, you may be miss symbols from your dll's. check with dependency walker for get missing symbols.
Thanks and Regards,
Selvam,
http://www.wincpp.com
|
|
|
|
|
What exactly is the problem?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
How do i do Unit testing for C programming in visual studio.
I have written code in c in visual studio .net and now i need to do unit testing please gimme idea....how do we test.........
Thanks,
Mohan.T
Mohan t
|
|
|
|
|
If you need to do unit testing then, you've to know how to do it. What I mean is: "testing is a difficul activity, you've to know very well theory in order to start".
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
[My articles]
|
|
|
|
|
Ya thanks,But am asking is there any tool for testing...
Mohan t working for N.I.C
|
|
|
|
|
That's a completely different question, and Google may give a precious help [^].
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
[My articles]
|
|
|
|
|
Unit testing is independent of programming language and IDE.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Hi,
I am trying to access an activeX dll from a C++ program. The dll does not have any exported functions and I am trying to access it explicitly, do I need to use create an interface using COM? LoadLibrary does not work because none of the functions are exported, Is there some tutorial on how to create a com interface?
Thanks
|
|
|
|
|
You don't need to create a COM interface. However you do need to obtain a COM interface, via, for instance CoCreateInstance [^].
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
[My articles]
|
|
|
|
|
|
assume the table has 2 fields: fe and fu.
fe (field-english) is english text field.
fu (field-unicode) is unicode text field.
also assume X is an unicode character, whose value is 1212 (hex word).
now we insert english string ab into field fe, Xa (values are 1212 6100) into fu.
how do we writesql statement?
i.e.
sql="insert into mytable (fe,fu) values(\'ab\', \'\x12\x12\x61\x00\' )";
the \x00 terminates the sql statement string.
any idea or suggestion?
(I am testing mysql database now, CString with unicode setting is not really suitable for mysql in the case).
thanks
|
|
|
|
|
Hi,
a new version of cfix, which is an open source unit testing framework
for user and kernel mode C and C++, is now available for download. Among
several minor improvements and fixes, cfix 1.5 adds two important new
features: The ability to implement unit tests as part of (existing) EXE
projects and support for multithreaded kernel mode unit tests.
For more details on these features, please refer to this blog post:
http://jpassing.com/?p=492
Updated cfix binaries and source code are available here:
https://sourceforge.net/projects/cfix/files/cfix/
Tutorials can be found here:
http://www.cfix-testing.org/doc/TutorialUserVsCc.html (Usermode C++)
http://www.cfix-testing.org/doc/TutorialUserVs.html (Usermode C)
http://www.cfix-testing.org/doc/TutorialKernelWdk.html (Kernel C)
Last but not least, in case you are a Visual Studio user, do not miss
out on giving Visual Assert Beta 2 a try -- it is an AddIn for Visual
Studio that seamlessly integrates cfix with the Visual C++ IDE:
http://www.visualassert.com/
As always, all kind of feedback is welcome!
--Johannes
|
|
|
|
|
Hi all,
I am getting a continuous video and audio packet from some source (Flv video codec) (Mp3 audio codec) and we have to send it to flash media server(or red5) through RTMP protocol.
Basically, I want to publish live stream through RTMP protocol to flash media server(or red5), so that there is live playback on a Flash player.
I am looking for a Visual C code snippet to do this.
Any suggestions on where to start and how to get this accomplished?
Many Thanks!
|
|
|
|
|
RTMP is a propritary protocol, and Red5 is written in Java, so good luck on that one.
If you want to scour Red5's code for RTMP stuff and translate it to Visual C, I'm sure you could figure it out, but you might as well use other tools like ManyCam (free) and Virtual Audio Cable (like $15, I think) and patch stuff through to Adobe's Flash Media Live Encoder (which is free).
|
|
|
|
|
Hi,
Thanks for your answer, I have got a better solution, Iam using RTMPD code for my application , its in vc++ and fits to my requirements.
|
|
|
|
|
Hi,
Would you mind sharing your find? Which RTMPD did you find, use?
Thanks in advance...
|
|
|
|
|
The home of the project is: http://www.rtmpd.com
There is an application written especially for that inside that server
RFC1925
With sufficient thrust, pigs
fly just fine. However, this
is not necessarily a good
idea. It is hard to be sure
where they are going to land,
and it could be dangerous
sitting under them as they fly
overhead.
|
|
|
|
|
Hi,
Thanks for the response. Did you take that implementation and convert it over for a client application by any chance? If so, would you care to share your implementation?
|
|
|
|
|
Lol, that whole thing is mine
Basically is doing the following:
flash publisher --> rtmpd --> streaming_server(rtmpd, FMS, etc) --> flash layer 1,2,...,N
Now, flash publisher talks with rtmpd via RTMP protocol (the first arrow). flash publisher is the "provider". But this can be changed. It can totally replaced with a custom internal stream. The over all structure would become:
rtmpd(doing screen capture INTERNALLY for example) --> streaming_server(rtmpd, FMS, etc) --> flash layer 1,2,...,N
You need to dig into the code a little bit though...
The server is running on:
Windows
BSD (Mac OS X, FreeBSD, NetBSD, OpenBSD, etc)
Linux (many distros here...)
Someone reported that ported it to SunOS. Not sure about that....
As a server, I recommend to run it on FreeBSD for best performance.
Have fun
RFC1925
With sufficient thrust, pigs
fly just fine. However, this
is not necessarily a good
idea. It is hard to be sure
where they are going to land,
and it could be dangerous
sitting under them as they fly
overhead.
|
|
|
|
|
Hi,
Hmmm... I will have to check it out. I have not looked at the code repository yet. Although I am some what familiar with the project (at least I know where I can find it ).
I want to use this with an open source server that is compatible with FMIS, such as red5, crtmp, etc. etc.
Anyway thanks for the heads up.
|
|
|
|
|
g++ 4.1.2 on codepad.org generates this error for the last statement in main() , below, but Visual Studio 2005 compiles it without error. Which is correct according to the C++ standard, or is this behavior undefined and both are correct?
In function 'int main()':
Line 13: error: conversion from 'const char [8]' to non-scalar type 'N' requested
compilation terminated due to -Wfatal-errors.
#include <string>
using namespace std;
struct N {
N(const string & t_) { }
};
int main()
{
string s1 = string("bananas");
string s2 = "bananas";
N n1 = string("bananas");
N n2 = "bananas";
}
|
|
|
|
|
g++ is correct. That line requires two user-defined conversions (const char* -> string -> N) in order for the only possible match for operator= (the one implicitly defined by the compiler for N). As C++ will only consider function matches that require one user-defined conversion (section13.3.3.1.2 of the 1998 standard), that operator= can't be used.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have been trying to maniupulate a wide character string into an ansi character(8bit) string followed with some general string length checks:
CString TxString;
char* pOutputString;
size_t CharCountXyz;
int CharCount2;
int CharCount3;
char BasicString[100];
int CharCount9;
...
pOutputString = CW2A(TxString);
CharCount2 = sizeof(TxString);
CharCount3 = sizeof(pOutputString);
CharCountXyz = strlen(pOutputString);
sprintf(BasicString, "ABCDEF");
CharCount9 = strlen(BasicString);
I added the last two lines to test strlen in its basic form, sure enough it worked when used to test 'BasicString' but curiously, the test on 'pOutputString' also worked???
modified on Tuesday, September 8, 2009 10:50 AM
|
|
|
|
|
GC104 wrote: sprintf(BasicString, "ABCDEF");
Since BasicString is a pointer, have you allocated memory for it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|