hi, i just found a site for hi-tech interviews and answers and i thought you'll be interessted. www.daquiz.com Avi.
visit me at www.laviadlab.com
JabraJabra
Posts
-
Interviews questions and answers -
Wininet : Cache problemhi, im trying to download a file with : InternetReadFile [B]or[/B] URLDownloadToFile. i did succeed to work with those functions - [B]BUT![/B] i want to download from the server and not use the cache files. i did tried to add some flags of no cache use but with no success. anyone got any inlights? Avi. visit me at www.laviadlab.com
-
load ttf file and use ithi, i got a special TTF file and i want to use it in my Dialog. i just to put a text using this special font on an EditBox. how can i do that? i didn't manage to figure this out by myself... Avi.
-
EnvDTE::DocumentEvents.DocumentOpend makes me suffer!hi, i made the event of Document_Opened(), in the event im checking the file path and according to it i choose to open or not the doc. the problem is that if i choose not to open the doc, i do Document.Close() - the doc is closed but not all of it, the tab/window of the doc is still in the windows tab. when i tried to close the doc manually with a button it worked just fine. the code is - private void DocumentEvents_DocumentOpened(Document Document) { // check something Document.Close(vsSaveChanges.vsSaveChangesPrompt); return; } what seems to be the problem?!?!
-
VSSDatabasethanks man, i'll check it out, it looks promising...
-
CommandBarControl.OnAction don't want to worki don't think so, it's coded in ATL.
-
CommandBarControl.OnAction don't want to workhi, i got this code -
CommandBar menuBar = applicationObject.CommandBars["MenuBar"]; CommandBarControl m_TemplatesControl = menuBar.Controls.Add(MsoControlType.msoControlPopup,1,"",System.Reflection.Missing.Value,true); m_TemplatesControl.Visible = true; m_TemplatesControl.OnAction = "MyFuncName";
the problem is that it never being called... i want that when i press the control it will call the function (it's popup and not button bcuz it got more commands inside it...) help please, Avi. -
CommandBarPopup not calling Exechi, i tried the code in this http://support.microsoft.com/default.aspx?scid=kb;en-us;555153[^] the problem is that i see the contextmenu but when i press one of the items nothing happens... the Exec method not being called... does anyone got any idea?
-
how to put multiline comment to function headerhi, i want to create a function with the FileCodeModel and put a comment for the function. the problem is that i want to make a comment like this:
/*********************** * * Comment example * ************************/
but i dont know how to make it, i know only to make this type of comment :// Comment example
with this code -CComPtr l_pCodeFunction; CComPtr l_pProjectItems; CComPtr l_pProjectItem; CComPtr l_pFileCodeModel; pActiveDoc->get_ProjectItem(&l_pProjectItem); l_pProjectItem->get_FileCodeModel(&l_pFileCodeModel); l_pFileCodeModel->AddFunction(L"DoSomething",EnvDTE::vsCMFunctionFunction,CComVariant(L"void"),CComVariant(1),EnvDTE::vsCMAccessPublic,&l_pCodeFunction); l_pCodeFunction.put_Comment(???) // TODO
does someone knows how to make multiline comment? -
VSSDatabasehi, where can i get this object? i mean from which object? couldn't find in EnvDTE... Avi.
-
CodeModel objecthi, from where can i get the CodeModel obj? 10x, Avi
-
how to add new file to vssthanks man, but i didn't find there an answer to my question... can u direct me further more?
-
how to add new file to vsshi, i got an add-in that creates new .cpp and .h file with templates in them. i want that after i save the files in the project to get them into the VSS. how can i do that? (EnvDTE.SourceControl only got checkout functions...) Avi.
-
EnvDTE::Document.Open returns nullhi, im trying to open a document from the documents list but it always returns null. this is my code:
// Find .dsp file name m_ActiveProject->get_FullName(&l_ProjectName); // Open .dsp file as text document CComPtr l_pDocuments; m_pDTE->get_Documents(&l_pDocuments); CComPtr l_pDocument; l_pDocuments->Open(l_ProjectName,L"Text",false,&l_pDocument);
am i doing something wrong? -
get project full namehi, im trying to get the project's full name by iterating the projects array.
EnvDTE::Projects *l_pProjects; l_pSolution->get_Projects(&l_pProjects); long *l_Count = new long; l_pProjects->get_Count(l_Count); for(long l = 0; l < *l_Count; l++) { EnvDTE::Project *l_pPrj; VARIANT v; v.lVal = 0; l_pProjects->Item(v,&l_pPrj); BSTR fullname; l_pPrj->get_FullName(&fullname); // PROBLEM! }
the problem is where the comment "// PROBLEM!" is. it just won't work? what am i doing wrong? -
Cstring with ATLit worked fine, 10x!
-
How to get the active project in visual studiothanks mate!
-
Cstring with ATLhow can i use CString with ATL in Visual Studio .NET?
-
findresource return nullhi, i added a custom resource to visual studio and im trying to do FindResource() but it always return me null.
FindResource(_AtlModule.GetResourceInstance(), Xi_Name, "TEMPLATES");
anyone know's whatsmy problem? -
How to get the active project in visual studiohi, im coding an Add-In (Visual C++) that do some changes to the document files in Visual Studio (.NET). in the code i need to get the Active Project that in the solution explorer (the one that will run when the project is execute). how can i do that? in MFC i think , in the class IApplication, there's ->get_ActiveProject, but in the classes of EnvDTE there's not (i didn't find). does anyone know about something like that? or is there another way to know which is the active/startup project? thanks in advance, Avi.