|
Welcome!
BTW: Do you know there are a lot of punctuation marks other than '!' ?
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]
|
|
|
|
|
Archy_Yu wrote: I will try to make some 2D Games To test my level.
I don't think you need to test your self, but...
Archy_Yu wrote: What courses should i learn to become a good Programmer!
... just start programming...
- ns ami -
|
|
|
|
|
Indeed as others say, programming is like driving, you should read the books about it, but you won't learn it unless you do it and do it again and keep doing it for a long long time...
Welcome to the programmer community.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
When you start thinking about building a career in computer science, don't put in a specific language in your mind. You should be strong in concepts. How an OS runs a process? How memory is used by a process (stack,heap), and some data strucures like linked lists, stack, queues, etc. Then I'd suggest you could start with C++ or C#. And it'd be time you would start understanding how a program is compiled,linked,executed. And before you try to make a 3D volume analysis algorithm,Or even a 2D game, I suggest you concentrate on the paraigms. Like OOAD. All the best know languages have adopted OOAD. So you need to be strong with the OO concepts. It doesnt make sense if you write a 2000 line C++ code without knowing OO. What students do is to write C code inside C++ and call it C++. After you become confortable with OOPS you may choose to work with C# or C++. In C# you can easily bring up colorful apps. In C++ little work around would be required. Then you'll have to learn the OS specific APIs to implement them in any language. Because if only you understand the APIs , you'll understand the frameworks around it. Like MFC on top of Win32.
So the road map is clear.
Round1.
HOW-STUFF-WORKS(BASIX)->OOAD(NOVICE)->C#,C++(HelloWorld)->WIN32APIs->MFC/Donet
Round2
HOW-STUFF-WORKS->OOAD->C#,C++(May be your 2D game)->WIN32APIs->MFC/Dotnet
Also when you learn to build programs using frameworks, you should also start learning Databases.
You might notice there's no much difference between Round1 & 2. But it will be totally different when you again take up the books and read. It won't stop with that. Everytime you read it again, you will get better meaning & understanding.
Finally, As you see, there's nothing called "VB" in the road map.
Also an important notice. I'm no expert. I'm someone swiming so hard in between round 2 & 3.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
anyone know where i can find lessons for webbrowser control - send post data with Navigate2 or Navigate methods?
|
|
|
|
|
see here[^], here[^]. By the way secret search tool[^] you can do some research here.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi,
I am using one own function "XmlFileWriter".In that I want to create one
XML file.
I added following code to stdafx.h
#import <msxml.dll> named_guids
using namespace MSXML;</msxml.dll>
And I have declared following smartpointers in XmlFileWriter.h file.
IXMLDOMDocumentPtr m_plDomDocument;
IXMLDOMElementPtr m_pDocRoot;
In my function I have written Initialization code
::CoInitialize(NULL);
HRESULT hr = m_plDomDocument.CreateInstance(CLSID_DOMDocument);
if (FAILED(hr))
{
_com_error er(hr);
AfxMessageBox(er.ErrorMessage());
EndDialog(1);
}
It is giving Syntax errors 'IXMLDOMDocumentPtr' : ambiguous symbol
'IXMLDOMElementPtr' : ambiguous symbol
Can anyone suggest me how to do it.
|
|
|
|
|
Is it[^] helpful?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
try with MSXML2......and if not works then mention the line where you are getting the error
Thanks A Ton
Ash_VCPP
|
|
|
|
|
I have used MSXML2 then also I am getting same errors.
I am using Visual Studio 2006.
|
|
|
|
|
Actually this code works under .net platform but its doubtful with one you are using.....i worked for quite a while with xml parsing but did not get this.....if i find anything i will let you know....just do googling....
Thanks A Ton
Ash_VCPP
|
|
|
|
|
You should prefix
IXMLDOMDocumentPtr with your defined namespace MSXML
like :
MSXML::IXMLDOMDocumentPtr
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
thanks for your reply.Now errors are not coming.
|
|
|
|
|
Did you forget to mark my reply as "Good Answer"? . Anyway never mind
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hi All
How can i identify root is file or folder?I have a String Path="C:\\Tets\\tr.txt" and String Path1="C:\\abc.txt".How can i identify Path root is Folder and Path1 root is File.Plz help me
|
|
|
|
|
Im not sure its your answer or no do you need to CString::Mid or CString::Right?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
i use find ,mid and Right.But i need to check only root is Folder or Not?
|
|
|
|
|
See WIN32_FIND_DATA and use FILE_ATTRIBUTE_DIRECTORY, FILE_ATTRIBUTE_NORMAL etc
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
As you reply i use this code.
CFileFind finder;
BOOL bWorking = finder.FindFile(_T(Path));
while (bWorking)
{
bWorking = finder.FindNextFile();
if (finder.MatchesMask(FILE_ATTRIBUTE_HIDDEN |
FILE_ATTRIBUTE_SYSTEM))
{
_tprintf_s(_T("%s\n"), (LPCTSTR) finder.GetFileName());
}
}
Path="C:\\Test\\abc.txt" or Path="C:\\tets.txt".In the both case currsor enter in while loop.But I need to check String have only file or Files/Folder Both.
Plz help me
|
|
|
|
|
If the path is always the absolute path, why not check if \\ occurs more that once.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
can you give me some dummy code?
CFileOperation fo;
CString string1;
finalString=strFileName;
char * szMyString = (char *)(LPCTSTR)finalString;
CString string = _T(szMyString);
int nPosp = strFileName1.Find( _T("\\Windows"));
if( nPosp >= 0)
{
CString DirPath21 = strFileName1.Mid( 0, nPosp +1 );
return;
}
int nPosp1 = strFileName1.Find( _T("\\Backup"));
if( nPosp1 >= 0)
{
CString DirPath211 = strFileName1.Mid( 0, nPosp1 +1 );
return;
}
int nPosp2 = strFileName1.Find( _T("\\Users"));
if( nPosp2 >= 0)
{
CString DirPath212 = strFileName1.Mid( 0, nPosp2 +1 );
return;
}
CString DirPath121;
int nPos = string.Find( _T('\\') ,3);
if( nPos >= 3)
{
DirPath121 = string.Mid( 0, nPos );
LPCSTR pF1=DirPath121;
LPCSTR pT1="c:\\Backup";
if (!fo.Copy(pF1,pT1));
}
else
{
string1=string;
string1 +='\0';
if(string1=="")
{
}
int nLen = string1.GetLength();
LPCSTR lpszBuf = string1.GetBuffer(nLen);
string1.ReleaseBuffer();
LPCSTR pF=lpszBuf;
LPCSTR pT="c:\\Backup";
if (!fo.Copy(pF,pT));
}
modified on Wednesday, March 18, 2009 8:39 AM
|
|
|
|
|
if (strchr(string, '\\') != strrchr(string, '\\'))
root is folder.
else
root is file.
Here i'm checking if the first instance of '\\' is equal to the last instance of '\\'.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
You might be searching for PathIsRoot API...
- ns ami -
|
|
|
|
|
Have you checked out _splitpath() ? The dir argument will contain "\tets\" for the former and "\" for the latter.
"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 ,
Can you please tell me how shuold i check compiler setting in visual studio 20005.
Thanks,
|
|
|
|