|
hello bro...i am new to java and i want to learn this language..from where should i start? i want to make one programme for my work...plz help me..okay...hoping for your favaourable response......your's faithfully......
|
|
|
|
|
confid3nce wrote: i want to learn this language
Java or C++?
confid3nce wrote: from where should i start?
At the beginning.
confid3nce wrote: i want to make one programme for my work
That's it? Just one?
confid3nce wrote: hoping for your favaourable response
Lot's o' luck!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: At the beginning.
|
|
|
|
|
My user community would like me to use the MS Access Table view GUI to edit the contents of an internal table that is a copy of a database table. The table is to manipulated in a modeless dialog. Obviously, it would be most productive to embed parts of the MS Access code in my code. My questions are:
1. Possible?
2. Feasible?
3. If feasible, some pointers on how to do this so that changes are immediately available to the C++ program would be appreciated.
Thanks in advance.
TedWagstaff
|
|
|
|
|
TedWagstaff wrote: Obviously, it would be most productive to embed parts of the MS Access code...
Are you referring to Excel's COM interface? If so, search for Excel Automation.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for the pointer. It has opened some doors. Not quite the way I was thinking but that is why the post.
TedWagstaff
|
|
|
|
|
hey folks,
i know how to create a window using create and giving it a rectangle region:
<br />
Create(NULL, "Windows Application", WS_OVERLAPPEDWINDOW,<br />
CRect(120, 100, 700, 480), NULL);<br />
but how do I change the rectangle region...
I mean clicking on a button and resizing the window to half or stuff (better to a Rectangle I calculate)???
I know it's simple but couldn't find a link
thx in advance
zqueezy
|
|
|
|
|
well now I Found
MoveWindow
to SetThatRegion but all I get is a "Debug Assertion Failed!"...
I actually wanted to to resize a subelement of my DialogClass. So I did a movewindow in my Dialog::OnSize(...) method.
I guess the error comes from the initialization where there isn't any SubElement (although it's initialized but maybe not visible?)
because
GetWindowRect also fails with the same assertion failed
|
|
|
|
|
SetWindowPos [^]
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.
|
|
|
|
|
yeah so obvious, I didn't even think of it
thx
|
|
|
|
|
Hi,
another way to do this is to change the CSize into ChildFrm.cpp in the function PrecreateWindow ()
For xample: i make different window sizes depending of the parent element of the window
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{ if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
CMDIChildWnd* pMDIActive = MDIGetActive();
CDocument* pDoc = pMDIActive->GetActiveDocument();
if ((pDoc) && (pDoc->m_szNewFrameName != ""))
{ cs.style = WS_SYSMENU | WS_CAPTION | WS_OVERLAPPED;
if (pDoc->m_pObject1 || pDoc->m_pObject2)
{ cs.cx = 415; cs.cy = 260; }
else if (pDoc->m_pObject3->m_nType == 0)
{ cs.cx = 517; cs.cy = 421; }
else if (pDoc->m_pObject3->m_nType == 2)
{ cs.cx = 610; cs.cy = 435; }
cs.lpszName = pDoc->m_szNewFrameName;
}
return TRUE;
}
With this I put the caption of the new view according to the name of the element and some other parameters, and the size according to the type of the element.
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?
|
|
|
|
|
I have built a program which generates a tree, and allows the user to perform searches for a number entered by the user.
I want to display the tree in a graphical format as well as the available searches.
How can I convert my program to an MFC application? Or what do I add?
This project is a console application.
I'm confused.
thanks in advance.
Star08
|
|
|
|
|
Converting a console application to a GUI application is a little more involved than just changing compiler switches, or linking with different libraries. The whole UI will need to be redesigned. Your code to generate the tree should remain the same, unless you've done something to it that ties it to a console application.
What exactly do want the GUI to look like?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
just a menu for the user to select a search algorithm and then display the tree along a search path.
Satr08
|
|
|
|
|
Hai,
Is ther any method to get the caption of menuitem if we know th e menu item id
Thanks In Advance
|
|
|
|
|
Try
int GetDlgItemText(
int nID,
CString& rString
) const;
|
|
|
|
|
|
Starting with VC2005, on building a project we see a number of files created. What is the implication of the following files:-
1)SimpleDll.dll.embed.manifest
2)SimpleDll.dll.intermediate.manifest
3)SimpleDll.dll.embed.manifest.res
4)mt.dep
|
|
|
|
|
I am trying to validate a user on a local system which is not conneced to a network... (Whose domain will be WORKGROUP)
I have already tried using LogonUser given in microsoft site.
Any other alternative is appreciated...
|
|
|
|
|
chitrag_raju wrote: I have already tried using LogonUser...
And this does not work for you?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yes it doesnot work , works only on a system connected to a network
|
|
|
|
|
chitrag_raju wrote: it doesnot work...
And what does GetLastError() return?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This works for me:
HANDLE hUserToken;
if (::LogonUser(_T("Mark"), _T("."), _T("**mypassword**"), LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &hUserToken))
{
::CloseHandle(hUserToken);
}
Does the user you are using have an account on the local computer?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all,
I have developed an application. It has a button on the form. When i click on the button, it executes another application using CreateProcess() and another window (application) pops up infront of the former window.
Here i can activate any of the window.
Can anyone please tell me how to disable the first window until i click OK or Cancel of second window?
|
|
|
|
|
If by pressing Ok or Cancel your second app will exit, then you can get the HANDLE value returned from CreateProcess, disable your current window content and call WaitForSingleObject(HANDLE..) to wait until the second application exits.
--
=====
Arman
|
|
|
|