|
Sure. You know best. Who was having a problem?
|
|
|
|
|
I guess you didn't understand me. Whatever.
|
|
|
|
|
|
Please post your question to the managed C++/CLI [^] forum.
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]
|
|
|
|
|
hi
i need a simple class which implements a matrix of mxn elements of complex numbers. i need this class to be a complete one. eg. supports inverse and multiplication to another matrix. i don't need it to be a template one. components are always complex numbers. but if it be, it would be more general.
thx
|
|
|
|
|
Well, you are a software developer, arent you? Code it.
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]
|
|
|
|
|
yeah, i am, but indeed i've forgotten some mathematical bases!
for example, i've no idea about how to invert a matrix! 
|
|
|
|
|
There's the oldie-goldie "Numerical Recipes in C" [^].
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]
|
|
|
|
|
|
ilostmyid2 wrote: i like to upload it like himself, but i don't know how.
Do you possibly mean that you want to write an article about? Write it, it would be welcome, I suppose.
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]
|
|
|
|
|
the resulting code is a matrix class which holds and may work with complex numbers instead of real numbers, as i said b4.
it's a good idea that others may have and use it too and also warn me about some mistakes if i had any. although i've tried not to change any part unless it's necessary, it's not unlikely that i've done mistakes or even the mister allen.
i like to upload it (the code), but i still don't know how!
regards
|
|
|
|
|
ilostmyid2 wrote: i like to upload it (the code), but i still don't know how!
Test well you code (you may possibly contact the author of the original article) and then write an article about (see 'Article->Submit An Article' menu item).
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]
|
|
|
|
|
ilostmyid2 wrote: i don't need it to be a template one
Shame that, 'cause otherwise I'd suggest std::complex[^] + Boost's UBLAS classes[^].
Still, I'm sure you've got a good reason not to use templates.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i've said that i don't NEED it to use a template type for the elements, that's if it's not template, it's also acceptable if it uses complex for the elements.
i knew the complex class and had used it.
i couldn't find any code in the other link for inverting a matrix. i've not much time in understanding and remembering the basic concepts and writing the code based on them. i need a ready-to-use class.
modified on Saturday, April 18, 2009 10:47 PM
|
|
|
|
|
Google[^] is your friend[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
How to create no active child window in MDI?
I create a child window in this way:
pWndTemplate->OpenDocumentFile(NULL);
How can I catch ShowWindow() to put SW_SHOWNOACTIVATE parameter? Is this a solution?
modified on Saturday, April 18, 2009 3:22 PM
|
|
|
|
|
I found one...
void CMyChildWndFrame::ActivateFrame(int nCmdShow)
{
nCmdShow = SW_SHOWNOACTIVATE;
CMDIChildWnd::ActivateFrame(nCmdShow);
}
|
|
|
|
|
Hi!
I have build a TCP DLL, and now I want to use it.
I have created all the typedefs for the function inside the DLL and now I want to use them with extern.
I added the DLL to my linker as an input but I get errors:
This is the code:
extern TCPLIB_RETRIEVE_N_BYTES_PTR tcplib_retrieve_n_bytes_ptr;
These are the errors:
Error 1 error C2146: syntax error : missing ';' before identifier 'tcplib_retrieve_n_bytes_ptr' d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest
What am I doing wrong here?
Is there another place to define the DLL in my project?
Thanks guys
modified on Saturday, April 18, 2009 12:56 PM
|
|
|
|
|
ytubis wrote:
Error 1 error C2146: syntax error : missing ';' before identifier 'tcplib_retrieve_n_bytes_ptr' d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest
That means that the compiler can't see the defintion of TCPLIB_RETRIEVE_N_BYTES_PTR - you need a definition of the type for the compiler to see. DLL's can't export type definitions, only functions and variables (and don't think that DLLs export classes as types - they don't, they export the class's methods).
ytubis wrote: I added the DLL to my linker as an input but I get errors:
You need to add the import library to the linker input, NOT the DLL.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank you very much.
But let me understand:
I have created TCPlib.dll, this is the build for the library.
I add this dll to the new project where I try to extern the function pointers.
in the input linker I gave TCPlib.lib and another time TCPlib.dll
and I get that the project can not find them:
Error 1 fatal error LNK1104: cannot open file 'TCPlib.lib' ServerTest ServerTest
I have the dll in the library of the project and also attached to the project as an Item.
what am I doing wrong?
Thanks for your help 
|
|
|
|
|
Unless the DLL project is in the same solution as the executable's project and you've added the DLL project as a dependency of the executable one, you also need to tell the linker what directory the library (that is, TCPlib.lib) is in.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I know here is NOT a suite forum to ask such a question; but I couldn't find any answer on the Internet.
Recently I can't browse any URL including the word "Microsoft" !!! I have two browsers: IE and Opera, both with the same problem. As soon as I click the "browse" button (go) or press "Enter" key, "Internet Explorer cannot display the webpage" (IE) or "Could not locate remote server" (Opera) is shown. Any idea?
Thank you masters!
|
|
|
|
|
The recent Confickr virus is said to block a list of sites, including Microsoft and all major antivirus vendors.
|
|
|
|
|
Does seem like that. For a good test, open a command prompt & ping microsoft
i.e "ping www.microsoft.com"
It should resolve to something like: 65.55.12.2491 - when I was affected by something last week, all addresses involving microsoft and many anti-virus vendors were being resolved to 127.0.0.1
I got around this by doing a dns lookup on www.microsoft.com, then substituting that ip for any part of the url that was www.microsoft.com (Same with avg and avira, etc)
e.g
I want www.microsft.com/downloads/somefile.zip
www.microsoft.com is being resolved to my loopback address, so I insert the ip that this should resolve to into the address bar --> 65.55.12.2491/downloads/somefile.zip
The problem lay in a registry key contained within
HKLM/Software/Microsoft/Windows NT/CurrentVersion/Winlogon it was UIShell, or something like that. (it was NOT UIHost, that is a neccessary entry)
The key points to an executable file that is run on start-up and proceeds to hide itself from directory searches, as well as hiding the registry key needed to remove it!
The solution? Use a program that uses direct registry access - The registry keys can't be hidden then since we're not using the wnidows api Registry calls that the virus has already hooked.
You should have a look for GMER - that's all I needed to access and repair the registry (make sure you get a new version from the author's website).
Oh, and btw - it wasn't conficker, dunno what it was - AVG reckons that the file is clean 
|
|
|
|
|
Hello,
I have HL7 message. I want to parse it. I want only Patient Name from the segment Patient Identification(PID), then how can i get or retrieve this particular data field from the message segment?
|
|
|
|