Hi all,
I have some difficulities in programing VHDL. It is often the case that simulation timing diagram does not match what I expected, or sometimes I don't know why a certain value appear at another clock cycle. In plain text, I don't understand how VHDL code really works.
How do I think in...
Greeting all,
Scenario: I have a SMC Wire router, and it is connected with 4 client PCs.
Background: MAC address is the unique number assigned to NIC(Network Interface Card)by the NIC manufacture.
Problem: The router works as a DHCP server and supposed to assign unique(& dynamic) IP address...
Hi all,
I am sharing my DSL internet with a floor-mate by using a D Link router. The internet account is mine, and router is his, so he installed the driver for the router but the router is in my room because of wiring.
The download speed for DSL is suposed to be 300Kb/s, however, the speed...
Hi all,
I wonder why FindFile returns true when I pass a file directory path like "C:\Programs\\New Folder".
By the way, for the definition of directory path, someone prefers the path with back slash '\' at the end, but someone prefers no '\' at the end. The reasons are:
With '\', it is...
Hi all,
I am having a problem when I plug my USB flash disk, but XP Home does not recognize it, and in Device Manager, it only shows "Unknown Device" under Universal Serial Bus. So I look into the Properties, and it shows "Driver not required or no driver installed".
This is very strange...
Hi all,
In VC++ 6.0 help document, it is suggested to use SetSize before using CArray. The reason is the following:
"If you do not use SetSize, adding elements to your array causes it to be frequently reallocated and copied. Frequent reallocation and copying are inefficient and can fragment...
Hi all,
I want to return a structure in a function, but compiler complains that I don't have copy constructor for the structure. Does anyone know how to create a copy constructor for a structure?
Thanks.
Hi all,
Anyone knows how to create a selection dialog box, and you can select directory listed in that dialog?
We usually have File Open Dialog to select specific file.
Thx.
Hi all,
This is just a simple question, and I hope you don't mind.
Is it a good idea to initialize variables?
For example,
double a; //if you don't initialize it, compiler will
//assign number such as -9.2559631349318e+061
For the concern of memory storage, I thought it...
Hi all,
I experienced an error message when I tried to run the program in debug mode, here it is:
"First-chance exception in Sapphire_DGB V2.exe: 0x0000005: Access Violation."
If you have any suggestion on how to deal with this kind of problem, please reply. Appreciated.
Another question is that when I try to use member function of CArray<Sample, Sample> def, the list of functions didn't not show up. I had #include <afxtempl.h>.
Thanks
Is it possible to add copy constructor or assignment operator to struct? As far as I know, it can be done in class. If it is possible, could you tell me how to do that?
Thanks
Hi all,
I have a CArray of struct, and I want to assign or add a new element of struct type to the CArray, but got error message, something like "No = operator" or "No constructor for struct".
Here is the sample code:
struct Sample{
CUIntArray Index;
CRect Rct;
CDblPoint Point; //user...
Hi all,
I am a bit of confused with parameter passing. What is the difference bettwen passing by address and by pointer? For example, you have a function:
void Addition(int& a, int& b)
vs
void Addition(int* a, int* b)
Thanks.
Hi all,
I am creating an interface class that will contain virtual functions. The actual implementation of these virtual functions will be created in other classes that specify the functionalities. Simply to say, it's a one-to-many relationship. One interface with virtual functions, many...
Hi all,
I want to create a Access database which uses Excel to graph my data, because Excel is very capable of doing graph and chart. And I want to call Excel object programmably in Access VB enviroment. Any help would be appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.