|
I'm sure you intended to put a question in there but after reading it like 3 times I can't seem to find one. Maybe you picked a bad day to stop smoking crack?
led mike
|
|
|
|
|
Your post doesn't make sense on so many levels...
|
|
|
|
|
Do you want to know which one of these is good for you to select for your job(for more money )?
|
|
|
|
|
Thank your for responce, Yes correct and also want to know the Demand in next 10 year, pay, potential, time to learn it, comparatively, any links to get the info like table or so....
|
|
|
|
|
Well its not fixed and depends to enviroment I think .net and web development are good choices and of course Database(like Sql server and Oracle of course Oracle like .Net is very vast).
|
|
|
|
|
Hamid. wrote: Database(like Sql server and Oracle of course Oracle like .Net is very vast).
In my knowledge, .net update almost evry year with new feature and new class. it really difficult to cope up with everychanging technology.
better to stick with slow technology change.as company adopt new tech slowly
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Why bother: There are great job opportunities in agriculture.
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
|
|
|
|
|
(XML API/stuff I'm not really used to work with)
I'm trying to transform an XML with an external XSL file ( to add indentation and line-feed to the output file)
In one instance ( on one generated XML file ) it works very well, on another instance (other generated XML file), it does not, it "copies"
the XSL to the outgoing XML (when applying the transformation).
Both the generated XML and the XSL files are valid XML files, and when using an external tool (XmlPad) to apply the transformation
on the XML file with the XSL file it works :
The code looks like this : The return value from transformNodeToObject is S_OK even if it looks to not work.
CString sInputPath;
sInputPath+= "StyleSheet.xsl";
MSXML2::IXMLDOMDocument2Ptr pXMLDocResult;
CMtXmlParser xlsParser;
xlsParser.InitDoc();
VARIANT_BOOL vResult = xmlParser.LoadDocument(sInputPath);
if( ((BOOL)vResult ) == false )
{
hr = xmlParser.SaveDocument( sPath );
return FAILED( hr );
}
MSXML2::IXMLDOMDocument2Ptr pXslStyleSheet;
pXslStyleSheet = xmlParser.GetDOMDocument();
hr = CoCreateInstance( MSXML2::CLSID_DOMDocument40, NULL, CLSCTX_INPROC_SERVER, MSXML2::IID_IXMLDOMDocument2, (void**)&pXMLDocResult);
ASSERT( !FAILED(hr));
IDispatch* pDispatch;
hr = pXMLDocResult->QueryInterface(IID_IDispatch, (void**)&pDispatch);
ASSERT( !FAILED(hr));
VARIANT vOutput;
vOutput.vt = VT_DISPATCH;
vOutput.pdispVal = pDispatch;
try
{
HRESULT hr = pXMLDoc->transformNodeToObject( pXslStyleSheet, vOutput );
ASSERT( !FAILED(hr));
}
catch ( ... )
{
hr = xmlParser.SaveDocument( sPath );
return FAILED( hr );
}
BSTR s = xmlParser.AsciiToBSTR(sPath );
hr = pXMLDocResult->save(s);
ASSERT(!FAILED(hr));
The XSL file is :
<xsl:stylesheet version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Anyone used transformNodeToObject and have any insights ?
Thanks.
Max.
|
|
|
|
|
Hi, I got similar code in one of my projects, there are two differences that may be of importance:
1) I always apply
pXMLDoc->put_async(VARIANT_FALSE)
to the IXMLDOMDocument 's. Probaby you have to check if the documents are fully loaded before you operate on them otherwise.
2) When calling transformNodeToObject(...) , I don't give the document pointer but a node pointer as argument:
IXMLDOMElement* pElemInterface = NULL;
pXMLDoc->get_documentElement(&pElemInterface);
IXMLDOMNode* pNodeInterface = NULL;
pElemInterface->QueryInterface(IID_IXMLDOMNode, (void **)&pNodeInterface);
pElemInterface->Release();
pXMLDoc->transformNodeToObject( pNodeInterface, vOutput );
It has been a while since I coded that so I can only guess there should have been a reason for this. In VBS, using the document directly works fine.
Hope that helps
|
|
|
|
|
i am having a combo box in my project to input date,
it is as follows,
CComboBox m_date;
m_date.AddString("1");
m_date.AddString("2");
m_date.AddString("3");
m_date.SetCurSel(0);
but the problem, is that i can see only the first element ....
where are others ....
plz help me ...
i have set the property of the combo box as 'drop list' ...
|
|
|
|
|
Go to the resource editor and make click on your combobox, then make the vertical size bigger. Afterwards your items should appear.
Greetings.
--------
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
|
|
|
|
|
oh my god !!!
its done ....
a lot of thanx to u ....
|
|
|
|
|
you are wellcome
Greetings.
--------
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
|
|
|
|
|
Hi,
I have created a static variable in a vc++6.0 project, the same project has sub project workspace. The variable which was created in one workspace is not accessible in another, though all are successfully compiled.
what could be the reason ?
Thanks and regards,
Thanks a lot
|
|
|
|
|
ganesa moorthy wrote: what could be the reason ?
The reason is that you were absent the day they taught C++ in C++ class. That's a C++ basic beginners topic (static scope[^]) and if you have not yet learned it then I hope your project is a school project.
led mike
|
|
|
|
|
try it in two different workspaces, it will work within one workspace only.
Thanks a lot
|
|
|
|
|
You really have to get yourself a book about C/C++ basics.
|
|
|
|
|
thanks i need to learn a lot, but do u know it is possible to retain and have values of static variable in project but across workspaces.
Thanks a lot
|
|
|
|
|
Hi ,
I want to connect Sqlserver Rdbms through vc++(MFC).What r the settings that I want to made.please mention the possible ways to do this
Like using ADO or OLEDB or what r the classes that i can use for this
ramesh
|
|
|
|
|
Click here -> [^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hope this should find ur way
_variant_t var1, var2 //if needed;
HRESULT hr = S_OK;
int icUserID;
BOOL bFound;
bFound=FALSE;
if(FAILED(::CoInitialize(NULL)))
//AfxMessageBox("Error");
_ConnectionPtr pConnection2 = NULL;
TESTHR(pConnection2.CreateInstance(__uuidof(Connection)));
pConnection2->ConnectionString = "DSN=URDSN;UID="";PWD="URPW";";
pConnection2->Open("","","",adConnectUnspecified);
_RecordsetPtr pRstUser = NULL;
hr = pRstUser.CreateInstance(__uuidof(Recordset));
if(FAILED(hr))
{
//AfxMessageBox("Unable to Open the Record Set.");
}
bstr_t sqlStatement1;
sqlStatement1 = "SELECT * FROM URTABLE"; //what every
// what every...
pRstUser->Close();
pConnection2->Close();
CoUninitialize();
|
|
|
|
|
Did you see Database section on the codeproject it has lot of articles.
|
|
|
|
|
Can any body tell me how to convert UPPER case string to lower case string in Unicode.
I need to convert Russian language. They have upper and lower case and MakeLower / _tcslwr in not working on russian. Do you have any other solution.
|
|
|
|
|
All reposts will be ignored. Besides that, I gave you an answer here[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
If previous answers are'nt helpful for you,you reply to them.
|
|
|
|