|
Now i'm confused
|
|
|
|
|
I worked out that renaming things in the #import was the right solution (rather than the hack I suggested) well after my previous posts in this thread - that's why I didn't re-post and suggest it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Looking for a program that will search through a large amount of folders and sub folders and pick out certain information from .mat files in each.
Once the information has been pulled from the .mat files, be it the start time of the data processing, I would like the program to start building an array with the extracted information.
Any ideas??
I am able to extract the information that I want when I look for it directly in one specific .mat file but I cannot figure out how to set the program up to run through many folders and build a table of the extracted information.
HELP :/
Thanks in advance,
Martin
|
|
|
|
|
This article[^] has code that will search through folders and sub-folders for files - you could modify that to tell you all the .mat files, which you can then process.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I want to develope a real time data server client like excel sheet . how it is possible
Trioum
|
|
|
|
|
trioum wrote: I want to develope a real time data server client like excel sheet . how it is possible
Depending on how you ask questions I very much doubt it is possible at all.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I would start with printf("hello world\n"); and then gradually progress.
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]
|
|
|
|
|
can you run that by me again? did you want a server or a client?
|
|
|
|
|
or an excel sheet?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hello
I have a menu in the resource table with the default identifiers in the string table. But when I add a new menu item in the menu with a new identifier in a string table that menu item is displayed inactive.
Now if I change the identifier to the existing identifiers in the string
table which are not added by me then the menu item is active.
How to add new item in the string table
Prithaa
|
|
|
|
|
MFC or Non-MFC?
How are you doing it? Can you give a bit more info and/or a snippet of your string table?
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello,
Thanks for your reply
I have made a project in VC++ with MFC without Doc-View architecture.
I added a string in the string table and used the same string for menu item.
Prithaa
|
|
|
|
|
If you don't have a message handler the menu item will be disabled by default. You might also want an OnUpdate* handler to set the active state depending on a condition.
In the resource editor, right-click the item and select"Add Event Handler" (or something similar in your VS version)
|
|
|
|
|
Hello
Thanks for your reply
|
|
|
|
|
I've created a very simple one-button MFC dialog app that attempts to utilize a callback function. The app complies and runs just fine, but the callback routine never gets triggered.
What needs to be modified in order to get the callback to trigger properly?
You can download the test.zip file here (the test app is in VS 2003 to ensure more people can try it out): http://tinyurl.com/testfile-zip
The code utilizes an alarm class posted here on CodeProject, and the callback function in the test app is suppsed to get triggered every 3 seconds (as determined by the code being passed in).
Thanks!
--
Edward Livingston
(aka ExtraLean)
--
"I still maintain that seeing a nipple is far less disturbing than seeing someone get their brains blown out." -- Chris Maunder
|
|
|
|
|
ExtraLean wrote: The code utilizes an alarm class posted here on CodeProject
Why not post a message on that article's message thread?
[edit]Also - you've got the source yourself - break out the debugger and try tracing through the source[/edit]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have some problem like when i communicate between application i need through pipe its happened
and another problem like when i read and write through pipe its not happened properly
can any body help me
|
|
|
|
|
AshNis wrote: can any body help me
If you provide enough information, then maybe. Anyway, with the information (lack of information would be a better word I guess) you provided here, nobody will be help to help you...
|
|
|
|
|
As Cedric said, you've not really given us anything to help you with.
I did a named pipe application (accurately, two applications!) using named pipes, and I just followed the samples on MSDN in the documentation.
Both from MSDN:
Multithreaded Pipe Server[^]
Named Pipe Client[^]
Enjoy!
One problem I had was making a named pipe accessible across the network by any user.
DWORD CNamedPipeServer::ServerThread ()
{
SECURITY_ATTRIBUTES sa;
SECURITY_DESCRIPTOR sd;
if (!InitializeSecurityDescriptor (&sd, SECURITY_DESCRIPTOR_REVISION))
return 0;
SetSecurityDescriptorDacl (&sd, TRUE, NULL, FALSE);
sa.nLength = sizeof (sa);
sa.bInheritHandle = FALSE;
sa.lpSecurityDescriptor = &sd;
BOOL bLog = FALSE;
char pipename [512];
lstrcpy (pipename, "\\\\.\\pipe\\");
lstrcat (pipename, m_PipeName);
m_hPipe = ::CreateNamedPipe (pipename,
PIPE_ACCESS_DUPLEX | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_OVERLAPPED,
PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT,
1, 0, 0, 100000, &sa);
You don't have to use overlapped I/O - but it fitted my application. Just note the sa and sd variables.
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi All
How can i prevent to enter space in Edit box?
|
|
|
|
|
Check EN_CHANGE notification. Get the string from the edit box and store it if it does not contain space. When the user changes the string by entering a char, take the updated string and check if there is a space. If affirmative, replace the string with the old one that did not have space.
Hope this helps
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
hi,I'm sorry i dot not know!
|
|
|
|
|
Either subclass your own edit control and do the filtering there, or be lazy and search and download source for a masked edit control. There are plenty of those around on a website near you.
Edit: Spelling
|
|
|
|
|
can anybody explain how can i read from a file in CString onject using fstream.
CString str
fstream fin
fin.open(^);
fin.read((char *)str.GetBuffer(0),str.GetLength()* sizeof(TCHAR));
fin.close
this code is not working while m able to write the same way in file but not able to read
fin.write((char *)str.GetBuffer(0),str.GetLength()*sizeof(TCHAR));
plz help thank u
|
|
|
|
|
You must specify a proper length .
How many bytes do you want to read?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|