|
Does any one know why i cant link my visual c++.net project if i get the following
message
error PRJ0002 : error result returned from 'rc.exe'.
is there something i should check for in the project settings?
many many many thanks to the person that will answer!!
|
|
|
|
|
Im not reall savvy with the workings of the .NET framework, I know that in the VC++ 5.0 version you can right click on the error and select the error, it'll take you to an error line, and if it drops you at the start, then their was some option somewhere that tells you what each error means.
Its not much, but I hope that helps...
|
|
|
|
|
thanks for answering, in the end i found out what the problem was, the rc.exe was complaining about missing resources in the project, in my case the icon.ico file was missing.
|
|
|
|
|
hello. i had this error too. then i had error rc2135 because it could not find my icon. but when i checked my res folder,that icon exists. i do not know what went wrong. i would really appreciate the help. thanks.
|
|
|
|
|
hello. it's okay now. my project had a japanese name. the compiler cannot read my icon. it returns a garbage so i just had to change the icon file name to an English one. thanks anyway.
|
|
|
|
|
Hi ,
I would like to know how the framework handles the following scenario.
I have an unmanaged application(UnManApp) accessing a managed
library(Manlib). This managed library, Manlib talks to the underlying storage
repository through an unmanaged library ( UnmanLib). So the situation is
having two interops.
Summarizing:
UnManApp -> ManLib -> UnManlib -> Storage Rep
So effectively the data from the unmanged world goes to the repository
through the managed- unmanaged lib .. I would like to know if the framework
does any optimisations and is this a huge performance hit.
Thanks in advance
|
|
|
|
|
In regards to the performance cost, Interop is expensive time-wise. Mostly, the extra time required to execute is related to the amount of data that you are transferring between the managed and unmanaged DLLs or executables.
Also, there are a number of additional instructions that are required for the Interop to work correctly.
From what I've read the Interop Development Team went to alot of trouble to design its system to work well with existing COM components, and native code, but, really, it depends largely on the complexity of the operation.
|
|
|
|
|
I have one list box that lists some info. How can i make it scroll down when the items are aded so that the last one is visible.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
There's a method on the listbox for setting the scroll position.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I tougth so but I can't find wich one.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
Here's how I force one to scoll:
lstFiles.EnsureVisible(lstFiles.Items.Count - 1);
That's in C#, but hopefully the method is the same in MC++. I don't see why it wouldn't be...
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
It does not work with ListBox but I found a way to do it:
listData->TopIndex = listData->Items->Count - 1;
Thanks anyway.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
Does any1 have an idea on how I could simulate a CPU clock in .NET?Specifically i want to simulate the ticks of a CPU clock,as part of a program that handles processes in terms of an OS...The algorithms that i want to implement have as criteria the arrival time of process in a CPU and the burst time..So i need something to count-To simulate the CPU clock..I used to do that with "time.h " in VC++ 6 but now i don't know how...
Pls Help & keep up the good work...
May it be your fate to live in interesting times
|
|
|
|
|
This may not be useful to you, it depends on what kind of accuracy you need.
In Feng Yuan's book (Windows Graphics Programming), he implements a timer with readout to produce time intervals that the operating system took to complete a GDI function calls. He used the processor's own registers and wrote most of the code in assembly. In all honesty, I didn't understand the specifics of his method, but, he was reporting time spans in microseconds. As I recall, it was a hook method, and the tricky part was returning the registers to their original value, so that the application could then time other functions.
I'm guessing you'd want something simpler and fool proof.
|
|
|
|
|
OK, essentially my friend has a game server I want to send packets to. I have no clue where to begin, but what I want to do is establish a connection with the actual game, and then have another program intervene.
It should then:
Log all packets sent from the game and spoof packets back to it.
Log all packets sent from server and spoof packets back to it.
Can this be done?
|
|
|
|
|
I am going to assume that the program uses SOCK_STREAM and not something else. Im also going to assume that your on a windows system. There are two suggestions I have for you... neither of them answer your question fully, but they might nudge you in the right direction.
Hobbit and Weld Pond built a great tool called netcat... it is command line and can be plugged in to other applications with minimal ease. It supports a hex dumping feature (not quite packet logging though) although I am sure that you (or some else) could code a packetlogging option into it.
The other option involves the ethereal program (packet logger) which obviously logs packets... analyse the pckets for a while and see what comes up when something happens. Then use a packet crafter... I'm sure I saw one around here the other day, and send your spoofed information... If you were really smart you would code your own tool to incorporate these idea's and save you installing a hundred programs just to make the thing work.
I don't claim to know all the answers, I claim to be able to bs enough to help people out...
|
|
|
|
|
Hi,
I am trying to use the getprocessesbyname manged extension from the system:diagnosics system.dll
from .NET with C/C++
Do any one knows away to get for a speacific process name how many process currently running and then use it in an unmanage project.
I don't want to define it with complier \clr and then use #pragm unmange and mange,tried it already and the rest of the project didn't compile.
And the only way I had luck of using it by creating a manage project and
using this code:
[C++]
#using <mscorlib.dll>
#using <system.dll>
using namespace System;
using namespace System::Diagnostics;
int main()
{
//process running eyal.exe
Process* localByName[] = Process::GetProcessesByName(S"eyal");
}
I just want to be able to run only one program eyal.exe ,and if try to run more then one will have a message and then terminate the second process.
Thanks
Will be glad to get any help.
|
|
|
|
|
I am new to the Managed C++,I have created a namespace "N" with one "Cl" class in that name space.
Now I want to use this "Cl" as a data memeber in a unmanaged C++ class.
the syntax i have followed in Unmanaged c++ class header is as follows..
class Unmanged
{
public:
Cl *m_Managed;
};
The reported error is..
error C3265: cannot declare a managed 'm_Managed' in an unmanaged 'Unmanaged'
Please help in solving this is very urget for my assignement.. Thanks.
|
|
|
|
|
Are both of these classes in the same application? Is the unmanaged class a COM object?
At any rate, when you transfer data to and from managed and unmanaged types or call functions again from managed to unmanaged, or from unmanaged to managed classes or objects, the Interop marshaler takes care of some operations (invisibly from the programmer's point of view). Generally, this involves some data transfer and the marshaler tries to convert defined types to their compatible types in the other domain. The marshaler, because it deals with so many different and disparate types has a well-designed behavior. User-defined types are the most difficult to deal with and sometimes it is necessary to write a custom marshaler to enable the Interop to work properly.
There is lots of information over at the MSDN site.
And, in all honesty, I am not that experienced in this area, but, it is common to experience problems with Interop.
I have been reading: "NET and COM: The Complete Interoperability Guide", by Adam Nathan, and I would highly recommend it as a source of 'official' Interop intel.
A simple suggestion, though: use the same types for your data in both managed and unmanaged classes, and re-write your functions so that they accept those data members, rather than the class.
|
|
|
|
|
|
Help me,please.
Thanks a lot.;P
|
|
|
|
|
What do you want to do ? Why are you asking in a managed C++ forum ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Help me,please.
Thanks a lot.;P
|
|
|
|
|
Hai,
In my application i want to rotate the Polygons i have drawn in a specifeid angle without using the RotateTrasnfom(bcoz a lot of other object are in my drawings).
Nanyone have any idea about it?
Thnaks in Advance
|
|
|
|
|
Don't you just rotate, draw, then rotate back ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|