15,891,607 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by oronsultan (Top 111 by date)
oronsultan
12-Nov-23 13:01pm
View
I really try to understand you. what do you mean "between frameworks"?
oronsultan
12-Nov-23 9:11am
View
Ah?
oronsultan
12-Nov-23 8:37am
View
I updated mu question the best that I can do.
oronsultan
7-Aug-23 2:43am
View
Can you please elaborate?
We have web services exposing nothing but API's. The web service is reference with a set of DLLs (class library) that are generic.
Is it possible to access request url params or current session params from a class library?
oronsultan
21-Dec-22 2:38am
View
I'm sorry Larhange, but it seems to me that we are on two different planets. There is no such class called PdfDocumentConverter under PDFSharp and I couldn't find any reference to it in a google search. What library are you talking about? What's its version?
oronsultan
20-Dec-22 15:38pm
View
@Larhange Thank u so much for the detailed answers. I'm looking into it as we speak but it seems that ImportPage() method doesn't exists in PDFDocument object. M I missing something? I'm using v1.50.5147 of PDFSharp.
oronsultan
19-Dec-22 10:27am
View
Thanks for the answer Gerry but we saw that post too. Read till the end :-). We tried that, Its not working right.
oronsultan
21-Aug-22 7:52am
View
Thanks for the reply.
It's a good start but not exactly what I was aiming for.
What I'm looking for is actually an option to write it like this:
Suppose we're writing an Interface (IStorageAccount) that contain both others: IDirectory & IFile.
Now let's say that IStorageAccount is inherited by StorageAccount class.
I want to be able to use this syntax:
var res = StorageAccount.IDirectory.Get("something");
var res = StorageAccount.IFile.Get("something");
By the way, you didn't take into account the case that both interfaces hold the same method with the same signature and you want to use recursion.
oronsultan
11-Jun-22 19:16pm
View
Hi,
The code line responsible for the error is 'Response.End();'.
My main goal is to understand what is different here from other services.
For us it is not false positive because the user gets an indication that everything is fine in this situation, which is not.
oronsultan
24-Mar-22 4:50am
View
I'm afraid its not working
oronsultan
10-Nov-20 2:16am
View
Hi Richard, Sorry for the late response.
Thank you very much for putting out so much effort in writing a detailed answer. This works fine!
oronsultan
6-Aug-20 4:56am
View
Dear Friend,
Thank you very much for your quick reply.
Pls, this is the drill down:
First, I create a 'Field' entity:
Field f = new Field();
Than, I initialize the properties. One of them is called 'editedParagraph':
f1.editedParagraph = "paragraph text 1";
After finishing initializing all of the properties, I save the entity as a json file:
string destination = "c:\\...\Output.Json"
var json = new JavaScriptSerializer().Serialize(f);
File.WriteAllText(destination, json);
I need the 'editedParagraph' to be saved as 'paragraph text 1' and not '"\\u003cp\\u003eparagraph text 1\\u003c/p\\u003e"'
oronsultan
28-Jul-20 13:57pm
View
Dear Gerry,
I'm not trying to cancel drag event, I'm trying to fire it.
oronsultan
27-Jul-20 3:44am
View
Dear Friend,
Initializing the List inside the constructor does not resolve it.
Only when I write the connection string hard coded the error stop, like that:
static GV()
{
connectionStrings = new List<connectionstringinfo>();
connectionStrings.Add(new ConnectionStringInfo() { Type = ConnectionStringType.Installer, ConnectionString = @"Data Source=localhost\sqlexpress;Initial Catalog=InstallerDB;Integrated Security=True;" });
}
But if the constructor just initialize the list, the error still occur:
static GV()
{
connectionStrings = new List<connectionstringinfo>();
}
BTW, static constructor cant be public :-)
oronsultan
27-Jul-20 2:44am
View
Dear Garth,
Thank you very much for your quick reply.
Although the exception still stands, Thanks to your answer I can now point to the object causing the problem. The static property 'InstallerConnectionString' Saying that the List<connectionstringinfo> ConnectionStrings is not initialized. Just to proof it, If I Rewrite the code to this, everything works great:
public static string InstallerConnectionString
{
get
{
List<connectionstringinfo> cs = new List<connectionstringinfo>();
cs.Add(new ConnectionStringInfo() { Type = ConnectionStringType.Installer, ConnectionString = @"Data Source=localhost\sqlexpress;Initial Catalog=InstallerDB;Integrated Security=True;" });
return ConnectionStringInfoHandler.GetConnectionString(cs, ConnectionStringType.Installer);
}
//get { return ConnectionStringInfoHandler.GetConnectionString(ConnectionStrings, ConnectionStringType.Installer); }
}
The problem is that according to the compiler, He is not sure that the ConnectionStrings is actually contain anything.
oronsultan
24-Nov-19 8:50am
View
Nice :-)
A recursive generic method solution would be nice...
oronsultan
5-Nov-19 1:06am
View
Found the answer!
On the top menu click Packages -> Script -> Configure script and on the 'Current Working Directory' copy the path which python.exe is install, e.g: C:\Users\OronS\AppData\Local\Programs\Python\Python38
oronsultan
5-Nov-19 1:06am
View
Found the answer!
On the top menu click Packages -> Script -> Configure script and on the 'Current Working Directory' copy the path which python.exe is install, e.g: C:\Users\OronS\AppData\Local\Programs\Python\Python38
oronsultan
5-Nov-19 1:06am
View
Found the answer!
On the top menu click Packages -> Script -> Configure script and on the 'Current Working Directory' copy the path which python.exe is install, e.g: C:\Users\OronS\AppData\Local\Programs\Python\Python38
oronsultan
4-Nov-19 8:11am
View
the python.exe file does exist in this path, but I have 2 questions:
A. Is it okay to have two paths regarding python? (One for python.exe and one for its scripts)
B. Do I need to make changes to atom settings so that python files run according to the environment variable?
oronsultan
4-Nov-19 8:04am
View
this is what i have:
C:\Users\OronS\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\OronS\AppData\Local\Programs\Python\Python38\;C:\Users\OronS\.dnx\bin;C:\Users\OronS\AppData\Local\Microsoft\WindowsApps;C:\Users\OronS\AppData\Local\atom\bin
is this ok?
oronsultan
4-Nov-19 7:54am
View
How exactly do i do it? Can you please tell me what steps I should take?
oronsultan
28-Oct-19 10:21am
View
where can i find the python path and where can i change the settings regarding that issue i atom?
oronsultan
28-Oct-19 9:48am
View
yes. i forgot to mention that, sorry...
oronsultan
22-Oct-19 9:26am
View
Hi, I was able to find the protocol (RTP) and get the information that comes from the card. Do you know a good way to read the RTP protocol so that I can process the information into an image / video?
For example:
"RTP0WI\n\0\u0001\0\0\0\u0014\0?\u0003\u0005\"\u001di%\u0014xB\0\0\0\0p~?s\0\0\0\0\0\0\0\0D002??VB?\u0001\0\0\u0006CAMERAZJ\0\0\nX\0\0\0H\0\0\0\u0001\0\0\0\0?\a\0\0\0\0\0\0\0\0\0\0\0\0?\0\0?\0\0?\0\0?z?ru?rs?rz?mu?nq?su?qv?rr?mp?st?qr?pv?qv?rs?ss?vl?ru\u007fwx?ws?uo?{\0\0?p?wu?yp?{t?\u007fs?z\0?\0\0?\0\0?\0t?|s?|u?}{?}\0?\0\0?\0\0?\0y??v??}?\u007f|??\0\0?\0\0?\0\0?{??\u007f??{??{??|??\0?\0\0?\0\0?\0}?????\u007f??\u007f??{??\u007f??}??|?????{???????????????????????????????????????????????????????????\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?w?xs?lr?jv?hm?tm?pk?tk?nr?pn?ro?pr\u007ftr~qt~wn\u007ftm?tl?sr\u007fuk?wx?ym?u\0\0?\0\0?n?vs?y\0\0?\0\0?\0?\0\0\0?\0\0?\0\0?v~~u??y?}\0?\0\0?\0\0?\0v??s??{??w??\0\0?\0\0?\0\0?\0\0?\0\0?}??|??\0?\0\0?\0\0\0?\u007f??\0\0????\0\0?\u007f?????\u007f??\u007f??|?????}??z????????????????????????????????????????????????????????\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?{?vq?ou?ro?qt|tr?qq\u007ftn?qp?qs?qn?tl\u007fuo?ql?sp?rn?up?tr?qp~zs?xt\u007fy\0\0?\0\0?n?uq?v\0\0?\0\0?\0\0?\0?\0\0?\0u?\u007f\0\0
?u?{q?{\0\0?\0?\0\0\0?\0\0?\0\0?y??\0\0?{??{??\0\0?t??\0\0?\0\0?~??\0?\0\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\u007f??\0\0?\0\0????x????????????????????????????????????????????????????????\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?\0\0?~?tx?os?qn?qm?nv?oq?ok~su\u007fqv?nm\u007fto~tq?qq{xp~th?qp?nr?ro~xn?vs\u007fwv}wq?u\0\0?r?w\0\0?t?v\0\0?\0\0?\0\0?\0\0?\0\0?v~~u??\0\0?\0?\0\0\0?x?~x??x??z??\0\0?y??\0\0"
oronsultan
7-Oct-19 9:05am
View
the protocol is UDP and the library is datagramsocket (i think).
oronsultan
7-Oct-19 5:00am
View
Thanks again for the quick response. I think I didn't explain myself well enough. I need help finding a way to capture this broadcast and display it via C # and WPF.
oronsultan
7-Oct-19 2:58am
View
hello RickZeeland,
I listened to your advice and installed Wireshark. I can see now that the Src Port is 53567 and the Dst Port is 1900 and the protocol is UDP. How am I supposed to move from here?
oronsultan
6-Oct-19 11:20am
View
You mean it can't be implemented in C#? I know for sure that the source code of the external software where I see the video is written in Java.
oronsultan
17-Apr-18 3:01am
View
Dear Richard, Thank you very much for the quick reply (and sorry for my late response). We decided to go with your first solution, EPPlus. Amazing solution. There was no need for any installation on any server, and the Excels look just wonderful (design, graphs, etc.). Again, Thank you very much!
oronsultan
9-May-17 10:19am
View
thank you for your fast reply. The way I display UserControls on the main page of the application is through a DLL I developed that contains one user control and its content changes every time according to the user control I send it. I went to this development in order to create a high user experience - this user control knows how to switch between windows in 8 different animations. Anyway, the user control is called pageTransitionControl and that's how it looks:
public static void LoadUc(System.Windows.Controls.UserControl ucParent, System.Windows.Controls.UserControl ucChild, PageTransitions.PageTransitionType tranType, bool removeChildrens = true, System.Windows.Window w = null, List<plist.plist> lst = null, bool hideMenu = false)
{
MainWindow win = null;
if (w != null) { win = (MainWindow)w; }
else { win = (MainWindow)System.Windows.Window.GetWindow(ucChild); }
System.Windows.Application.Current.Dispatcher.Invoke(
System.Windows.Threading.DispatcherPriority.Normal, (System.Action)delegate
{
if (hideMenu) win.ucMenu.Menu.Toggle();
win.pageTransitionControl.TransitionType = tranType;
win.pageTransitionControl.PARAMS = lst;
win.pageTransitionControl.Tag = ucParent.ToString();
win.pageTransitionControl.pages.Push(ucParent);
win.pageTransitionControl.ShowNewPage();
});
}
oronsultan
22-Feb-17 5:08am
View
Dear Homero,
I just ended working on your solution. I finished when I clap hands in front of the screen! The clapping were for you :-). Thank you very much for this solution, I appreciate it a lot. It really helped me. By the way, I got your tip about Case Sensitive But just so you know, the XML which i uploaded missed the currect node. In practice, it look like that: , but I learned something new. Thank you very much!! Huge solution!
oronsultan
5-Dec-16 16:33pm
View
it's immposibble to write 'var result = filtered.Where(query);', the 'where' doesnt accept string. can u help me please with syntax?
oronsultan
5-Dec-16 16:33pm
View
it's immposibble to write 'var result = filtered.Where(query);', the 'where' doesnt accept string. can u help me please with syntax?
oronsultan
5-Dec-16 15:32pm
View
Dear Ehsan,
thanks for the quick reply.
I tried doing it befor (and tryied it agian after you'r reply) but all i get is this exception:
"Expression of type 'IQueryable`1' expected".
I googled it and couldnt find anything.
BTW, it happens on the same code row as befor. Any idea?
oronsultan
19-Nov-16 22:39pm
View
Using the above note giving me the result i need. because the get function of the webapi is async and because i am using a background worker for the loading animation i get confuse on what needs to come first. i need to know how to build this 2 thread and still push the loading animation even for a half second.
oronsultan
2-Nov-16 18:08pm
View
Great solution Richard, thanks a lot!
oronsultan
15-May-16 22:36pm
View
hey sergey, no, i dont mean rectanguler cropping. what i'm doing is cliping ellipsegeomtry inside a path and then do this:
BitmapImage bmi2 = new BitmapImage();
RenderTargetBitmap rtb = new RenderTargetBitmap(Convert.ToInt32(pathBack.ActualWidth), Convert.ToInt32(pathBack.ActualHeight), 0, 0, PixelFormats.Pbgra32);
pathBack.Clip = circle;
rtb.Render(pathBack);
PngBitmapEncoder pngImage = new PngBitmapEncoder();
pngImage.Frames.Add(BitmapFrame.Create(rtb));
using (Stream fileStream = File.Create(@"C:\Users\Desktop\EW\test\2.png"))
{
pngImage.Save(fileStream);
}
the problem is that when i choose the righth side of the image, the cropped png comes when the circle is on the left side of the image and the right size is blanked. same for each direction...what i mean is that the cropped picture actually does give me what i have chosen but instead of cropping the unselected parts it just made them transparent. i need to remove that. thanks...
oronsultan
12-May-16 12:30pm
View
hey sergey, i didnt answer you the last two days beacause i gave your solution a try and it didnt work out. what i think is that i didnt manage to pass my problem very clearly. lets some it up by saying i have a Path, inside it i have EllipseGeometry and i want to screenshot only the EllipseGeometry. how can i do it?
<Path x:Name="pathBack" RenderTransformOrigin="0.5,0.5"
Stroke="Transparent" StrokeThickness="1" Stretch="None" Margin="1" >
<Path.RenderTransform>
<TransformGroup>
<skewtransform anglex="0" angley="0">
<rotatetransform x:name="rtAngle" angle="0">
<TranslateTransform X="0"/>
</TransformGroup>
</Path.RenderTransform>
<Path.Fill>
<ImageBrush x:Name="imgBack"
Stretch="Fill" AlignmentX="Center" AlignmentY="Center" Opacity="1"/>
</Path.Fill>
<Path.Effect>
<blureffect radius="0">
</Path.Effect>
<Path.Data>
<combinedgeometry geometrycombinemode="Exclude">
<combinedgeometry.geometry1>
<ellipsegeometry x:name="circle3" radiusx="109" radiusy="109" center="115,115">
<combinedgeometry.geometry2>
<ellipsegeometry x:name="circle4" center="100,100" radiusx="0" radiusy="0">
</Path.Data>
</Path>
oronsultan
10-May-16 15:12pm
View
ooohhh dear sa, how much i miss reading your notes!
when i take the screenshot of the whole path, i'm getting a round png which is actually the original image selected by the user. infact, i want to take only the circle inside the image (this is the part that user choose to be the profile image). the circle is ellipsegeometry which make it preety dam hard to take screenshot. regarding your question, i dont want to make the rest of the image transparent, i just dont want to take it at all. if you have any more qusetion, please do. i know this is a complex situation but consider the history of me with codeproject, you are a legend!!! :-)
btw: what do you have to say if i tell you i want to get the pixels surounding the circle and than print this area, will it be possible?
oronsultan
2-Mar-16 9:23am
View
Sergey, i looked at your code and i have a question...
its seems we have 2 windows: the main window called "MainWindow" and the pseudo window called "RotatingWindow". as i see it, u confused with the windows because you put the controls (etc text box's and so on) in the pseudo window instead in the main window. if i am wrong, please tell me why u did it like that. another q will be: in order to make a logicall effect, do i need to make sure that i have the same controls on both windows? meaning, lets assume i want to make the spin effect on a bounch of windows. does it means that that for each window i will have to create a copy (a pseudo) window that delegate the target window and act like him?
oronsultan
2-Mar-16 2:14am
View
This is exactly what I wanted to see! i saw your solution early in the morning (and run it). soon as i leave the office today i will get to it asap. basically, regarding the duration, i wanna make the window spin really fast on start (for about 2.5 sec) and then, gradually, slow the spin speed to zero. my window grid is asymmetrical so the effect will be a lot prettier than a square window. after that i want to give the window a nice cool shadow effect. FYI, this is the login window of the project. i will keep you posted, obviously...
oronsultan
2-Mar-16 1:36am
View
Outstanding! Estonishing! Remarkable! Sergey, you r the man. Huge thanks legend :-)
oronsultan
1-Mar-16 10:58am
View
Deleted
... [redundant doing-nothing code is removed, the answer is in my article — SA]
oronsultan
1-Mar-16 10:56am
View
...
oronsultan
1-Mar-16 10:55am
View
...
oronsultan
1-Mar-16 10:19am
View
Listen Sergey, i know you from earlier discussions but this time you even outdid yourself, i think...
your answer can't be more detailed. to be honest, i don't know if i have enough code experience to achieve all you wrote but i will definitely give it a try. I will keep you posted, thanks a lot for dedicating the time to answer me :-)
oronsultan
25-Feb-16 13:46pm
View
never mind... i used the second thing you gave and it worked!!! thanks!!!
oronsultan
25-Feb-16 13:39pm
View
i installed the sp1 as u said and i cant see the profiler when opening the tool menu in ssms. could i missing anything?
oronsultan
11-Feb-16 17:26pm
View
btw, iby doing the command prompt "tracert" i get a message saying the destination host unreachable.
oronsultan
11-Feb-16 17:18pm
View
"do you have a 'public address' NAT'd to it ?" ? I didnt understand your last q Garth...
oronsultan
29-Dec-15 7:46am
View
Ryan, yes i am using ADO.Net. assuming i will go through the security issue smooth, i will have no problem changing the connectionString but the problem, as you described, is the "somewhere". assuming i don't want to use sql server installed on my personal computer (i really don't, but if you see any advantage please say) and i want to use "GoDaddy" for example, what server will i need to acquire, what sql server would i be needed to have(express will be enough?) and how is the connection String will look like?
oronsultan
29-Dec-15 3:25am
View
Dear Sinisa, you are absolutely right! that is exactly my intention (killing ms access and handling one database for all users using sql server) but i am trying to find out the answer on how to get started. Some of the answers were not detailed enough. saying i don't want the database to be on my personal pc rather on a remote desktop. what am i suppose to do? do i need to acquire a remote server (e.g "GoDaddy"?)? what do i need to have on the remote server? sql server would be enough? how can i get access to this data base and so on...
oronsultan
29-Dec-15 3:16am
View
Dear sergey, please accept my apologies but i think we have not reached a common understanding regarding the question.
i'm a developer for 5 years now and familiar with the ADO pretty good. My disadvantage is my lack of knowledge in web in general and especially asp.net. the fact that i used ms access in my code dosent mean i don't know the difference between access and sql server. i appreciate your answers (as always, you are the best replier) and all i am asking is not a tutorial about ms access, client-server or sql server from wikipedia but a good guidance on how to get started with connected to a remote server. basically, you need to see it like that: if a user using the software, how can he retrieve information from a database (sql server) not install on his computer? (of course that there is a lot more than that but this question can give a good perspective on what i am trying to accomplish).
sorry for being a nudg... :-)
oronsultan
29-Dec-15 2:29am
View
is it ok to allow users to connect to my personal desktop? just to be clear, that it is what you saying, right?
oronsultan
29-Dec-15 2:15am
View
what u r saying is that an sql server on my personal computer would be enough? user could connect to this sql server and retrieve data? another thing, what if i want the sql server to be on a remote desktop? than what i will have to do?
oronsultan
29-Dec-15 0:52am
View
Dear Ryan,
thanks for your reply. yes, i am using using ms access but that is only for the client side. the user will hold an ms access database on his personal computer, saving all his information. But on the server side i want to use a remote desktop with sql server that will keep all of the software information, eg: how many users do i have (when user install the software it will connect to the sql server and register), how many users are connected at the moment, what will be the access level for this user, updates, upgrades (pro / free version), Notification and so on. regarding to the syntax, while using ms access, the queries written inside the code (c#) but when i use sql server, all of the sql code will be written in stored procedure obviously. any advice on how to proceed? what will be my next step?
oronsultan
29-Dec-15 0:45am
View
hey sergey, nice talking to u again.
it seems like you angry :-(
please let me explain my self regarding to your reply.
you said "It all depends on what you are using and where"... i'm not sure i understand you. like i said before, i'm using visual studio 2015 and c# (i'm guessing winforms / wpf is not relevant for now). regarding to the "where", i didn't understand you...
Now, i know SQL server Its itself is a server but you need to understand that i didn't try thing like this before and i'm looking for guidance. i'm asking if i need to purchase a remote desktop server with sql server included and if so, how can i connect to it from my home computer. again, please understand i'm new to this method. looking forward to here from you soon :-)
BTW, please look into the answer i wrote to RyandDev below.
oronsultan
27-Sep-15 8:23am
View
There was an error related to the network or instance-specific error when establishing a connection to SQL Server. The server was not found or is not available. Verify that the show right Os- SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
oronsultan
27-Sep-15 8:15am
View
i'm still not solving this issue. is there any configuration i need to do on my side? maybe my firewall? if i have sql server on my local pc, can i connect it to my remote database?
oronsultan
27-Sep-15 7:44am
View
is the user id in the connection string is the user name?
oronsultan
28-Jul-15 18:09pm
View
ok, first thanks for your reply mathi. about your last comment, i dont use Relationships between tables. but, i do have a primary key in each table which is bond to the pk in others. i need to get the data from the otther table during the runtime of the trigger. u said i can write left join in trigger. can you please attach a code example on how am i suppouse to do that?
oronsultan
1-Jul-15 4:39am
View
I forgot to mention that I am not using my access as a user interface database. i use it only to keep data. the ui is in visual studio winform so that i dont have any buttons command on my access.
oronsultan
1-Jul-15 4:36am
View
Well, that was my assumption so far but my question is how do I do it?
google search brought me not so good results.
oronsultan
1-Jul-15 4:28am
View
o.k, let me be more specific.
i have 2 software. the first is booking managment and the second is sms control center. when specific values in the booking managment database changes, i need to listen to them, grab them and send them threw an external software (the sms control center). now, i need to know is there a way in ms access 2013 to trigger the sms control center exe when changes are made? i know that in data macro i can change field value when changes are made but can i run an exe file?
thanks a head,
oron.
oronsultan
2-Jun-15 16:28pm
View
Dear ralf,
the link is better than i thought!
thank a lot for the hard work, you are the- man!
oronsultan
2-Jun-15 7:30am
View
snippes you from the article you gave me:
Case DISP_CHANGE_SUCCESSFUL
'Resolution was changed
'This is not an assurance that the new resolution will render
'proprely on every system. It only means that the registery was
'updated succesfuly and that the driver have not return any
'error
Return ChangeResult.Success
i buield a program according to this code and nothing changes.
but thanks aniway :-)
oronsultan
2-Jun-15 6:49am
View
Dear ralf,
I need to know how can i change my screens resuloution.
oronsultan
2-Jun-15 6:39am
View
both. in order to determine if to set the view to horizontal or vertical i need first to check the current status (allready got it :-)) and then flip it, so yeah, both.
oronsultan
2-Jun-15 6:11am
View
thanks a lot for the quick reply...
but still, how can i set the screen orientation threw code?
oronsultan
1-Jun-15 13:30pm
View
First of all: B-R-A-V-O!!!! and thanks a lot for this great control, i'm sure gonna use it on my app...
great class, simple, classic and straight to the point....
if i may, i have to ask how come when i set the customeLabel background to transparent it turns white?
oronsultan
1-Jun-15 5:36am
View
dear Ralf, ahhhmmmmmmm.... you right!
but still, do you know any custome label control which does the work?
oronsultan
1-Jun-15 5:27am
View
trye it your way... want good :-(
lbl3.ForeColor = Color.FromArgb(126, Color.Black)
i changed the alpha value, tryed all the alphe area (0-250).
its seems it aint got any effect on the label.
maybe somthing in the label property is wrong?
oronsultan
1-Jun-15 4:18am
View
ooooopsssss...
i meant text opacity.
my bad...
i need the text of the label will be able to see threw it.
oronsultan
27-May-15 6:42am
View
dear ralf,
after writing this line:
Dim frm As Form = B
the error i get is this:
B is a type and cannot be used as an expression.
i read that the problem could be in the queue of the timer. the timer rise and hase certain amount of queue he have to do. let me remind you that any changes on B form can't be done, not just the timer.
oronsultan
27-May-15 4:39am
View
i tried that to. it want work.
but maybe this information will help:
on the first click on btnSend, the timer start running and the messages start to send one by one. on the second click, the timer still runing but the messages stop. i did what you said. the StopTimer function entered and set the timer to enabled = false but after the function end, the debugger goes to the timer_tick again and in the immidiate window, the timer is set to enabled = true.
its seems like any changes on B form dont catch. even if i put simple label on B form and change his text, it want change during runtime.
oronsultan
11-May-15 2:43am
View
like always Sergey, you are the M-A-N!!!
workes great, thanks a lot!
oronsultan
10-May-15 15:44pm
View
dear dear sergey,
your answer above seems like the answer. i'll be in my office and will give it a shot tommorow morning. its seems like you gave me an answer to somthing i didnt know that exist: hide a form in the taskbar :-) plus the owner problem.
i will keep you update in about 10 hours...
btw, first name is oron but my friends call me Bond, james bond... :-)
oronsultan
10-May-15 13:57pm
View
hey again sergey!
first, thanks for the reply of you and dave. now, regarding to my Q, let me be more specific:
for start, the main form is not! MDI. i dont sure u remember but we had this discussion a few month ago and i decided to listen to you.
in my program, i have a main form and some other forms opened from the main form. when i open a form from the main form, i have 2 forms shown on the task bar and so on but only the main form is seen. when i click the second form from the task bar, then it shown on the screen. now, in a situation when my secondary form is set to topmost = true, when i open it, it will show on top of the main form (the main form is larger then all of the other forms so it seems like its a window inside the main form). when i set the topmost of the secondary form to False, after the Load event, the form stays in the taskbar even if i set his 'form.Location' event to a new point on the screen.
there is a lot of dissadvantage in puting the main form in topmost = true. for example, when other folder in the OS is open, the form stays above all and the client can get appset because of that. what that i looking for is a way to load all the other forms and when thay finished loading thay will be visible on the main screen and not in the task bar.
thanks!
oronsultan
22-Apr-15 5:37am
View
sergey,
first of all thank u very much for your help.
second, i manage to handle the issue with your help and some syntax manipulation.
i tried to handle the base64 text when the text was not edit well. Apparently, the "." at the end of the text made the text unable to decode / decrypt. yes, god is in the little letters :-). aniway, what that i'm doing now is writing the text to txt file (from technical reasons) and decode it to another txt file and it works great. i'm guessing that there is a better way of doing that but for now i dont have the time for it. here is syntax of handeling base64 encryption:
If InStr(TxtLine, "Content-Transfer-Encoding: base64") > 0 Then
Dim encodePath = Application.StartupPath & "\DecodeBase64\Encoded.TXT" Dim decodePath = Application.StartupPath & "\DecodeBase64\Decoded.TXT"
Dim str As String = "X-Source-Dir: minisoft.co.il:/public_html"
Dim position As Integer = InStr(1, TxtLine, str)
Dim c As Char = Nothing
base64Encoded = TxtLine.Substring(position + str.Length)
base64Encoded = base64Encoded.Trim
Dim position2 As Integer = base64Encoded.Length
Do While c <> "."
position2 -= 1
c = base64Encoded.Substring(position2)
Loop
base64Encoded = base64Encoded.Substring(0, position2)
If IO.File.Exists(Application.StartupPath &"DecodeBase64\Encoded.TXT") Then
IO.File.Delete(Application.StartupPath & "\DecodeBase64\Encoded.TXT")
End If
Dim sw As New IO.FileStream(Application.StartupPath & "\DecodeBase64\Encoded.TXT", IO.FileMode.Create)
sw.Close()
Dim writer As New System.IO.StreamWriter(Application.StartupPath & "\DecodeBase64\Encoded.TXT")
writer.Write(base64Encoded)
writer.Close()
Dim sr As New IO.StreamReader(Application.StartupPath & "\DecodeBase64\Encoded.TXT")
base64Encoded = sr.ReadToEnd
sr.Close()
Dim byte64 As Byte() = System.Convert.FromBase64String(base64Encoded)
If IO.File.Exists(Application.StartupPath & "\DecodeBase64\Decoded.TXT") Then
IO.File.Delete(Application.StartupPath & "\DecodeBase64\Decoded.TXT")
End If
Dim sw2 As New IO.FileStream(Application.StartupPath & "\DecodeBase64\Decoded.TXT", IO.FileMode.Create)
sw2.Write(byte64, 0, byte64.Length)
sw2.Close()
TxtLine = File.ReadAllText(Application.StartupPath & "\DecodeBase64\Decoded.TXT", Encoding.UTF8)
End If
oronsultan
21-Apr-15 12:46pm
View
ok. let me check it out tommorow morning, i am no longer in my office. but if i remember currectly, i tryed this System.Convert.FromBase64String and all i get is "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters."
oronsultan
21-Apr-15 12:28pm
View
Sergey, its seems that ii annoyed you a bit. that was not my intention. i tried your first answer and it didnt work out. not because you gave me a wrong answer, but probably because i didn't figure it out completly. what i am saying is that it would be very helpful if you show me the code you did to get the attached result above.
oronsultan
21-Apr-15 11:47am
View
during our discussion, i found out this project:
http://www.codeproject.com/Articles/18478/Base-Decoder-and-Encoder
it works great, but why do i must write the text to txt file befor i convert it?
oronsultan
21-Apr-15 11:15am
View
and the text i need to analyze is this:
+OK message follows
Delivered-To: minisoft365@gmail.com
Received: by 10.28.225.132 with SMTP id y126csp426889wmg;
Tue, 21 Apr 2015 02:17:42 -0700 (PDT)
X-Received: by 10.180.78.199 with SMTP id d7mr17818829wix.94.1429607861856;
Tue, 21 Apr 2015 02:17:41 -0700 (PDT)
Return-Path: <erezgolan01@gmail.com>
Received: from server04.funet.co.il ([212.29.215.85])
by mx.google.com with ESMTPS id dk3si2695789wib.13.2015.04.21.02.17.41
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 21 Apr 2015 02:17:41 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning erezgolan01@gmail.com does not designate 212.29.215.85 as permitted sender) client-ip=212.29.215.85;
Authentication-Results: mx.google.com;
spf=softfail (google.com: domain of transitioning erezgolan01@gmail.com does not designate 212.29.215.85 as permitted sender) smtp.mail=erezgolan01@gmail.com;
dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
Received: from minisoft by server04.funet.co.il with local (Exim 4.85)
(envelope-from <erezgolan01@gmail.com>)
id 1YkUJG-002W3C-V4; Tue, 21 Apr 2015 12:17:38 +0300
To: erezgolan01@gmail.com, oronsultan1@gmail.com, minisoft365@gmail.com
Subject: =?utf-8?B?W9ee15nXoNeZ16HXldek15gg16rXnteZ15vXlCAtIFvXpNeq15nXl9eqINen?= =?utf-8?B?16jXmdeQ15Q=?=
X-PHP-Script: www.minisoft.co.il/index.php for 81.218.138.144
Date: Tue, 21 Apr 2015 09:17:38 +0000
From: =?utf-8?B?W9ee15nXoNeZ16HXldek15gg16rXnteZ15vXlCAtIFvXpNeq15nXl9eqINen?=
=?utf-8?B?16jXmdeQ15Q=?= <erezgolan01@gmail.com>
Message-ID: <ba8313508190828a17a9938ae6788686@www.minisoft.co.il>
X-Priority: 3
X-Mailer: PHPMailer 5.2.9 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server04.funet.co.il
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [841 32007] / [47 12]
X-AntiAbuse: Sender Address Domain - gmail.com
X-Get-Message-Sender-Via: server04.funet.co.il: authenticated_id: minisoft/only user confirmed/virtual account not confirmed
X-Source:
X-Source-Args: /usr/sbin/proxyexec -q -d -s /var/run/proxyexec/cagefs.sock/socket /bin/cagefs.server
X-Source-Dir: minisoft.co.il:/public_html
PHA+IDwvcD4NCjx0YWJsZSBzdHlsZT0iZmxvYXQ6IHJpZ2h0OyIgYm9yZGVyPSIxIiBhbGlnbj0i
cmlnaHQiPjxjYXB0aW9uPiA8L2NhcHRpb24+DQo8dGJvZHk+DQo8dHI+DQo8dGQ+IDwvdGQ+DQo8
dGQgZGlyPSJydGwiPjxzcGFuIHN0eWxlPSJ0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsiPjxz
dHJvbmc+16TXqNeY15kg15fXkdeo15Q8L3N0cm9uZz48L3NwYW4+PC90ZD4NCjwvdHI+DQo8dHI+
DQo8dGQgZGlyPSJydGwiPiAxPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9ee16EnINec16fXldeXXTwv
dGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4g15PXldeTINep15nXldeV16cg15XXkdeg
15nXlTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXqdedINeU16LXodenXTwvdGQ+DQo8L3RyPg0KPHRy
Pg0KPHRkIGRpcj0icnRsIj4gMTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXly7XpC/Xoi7Xnl08L3Rk
Pg0KPC90cj4NCjx0cj4NCjx0ZCBkaXI9InJ0bCI+INeo15XXkNeZINeX16nXkdeV1588L3RkPg0K
PHRkIGRpcj0icnRsIj5b16HXmdeV15XXkiDXlNei16HXp108L3RkPg0KPC90cj4NCjx0cj4NCjx0
ZCBkaXI9InJ0bCI+IDMuMjMyPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9ee16EnINeS16jXodeUXTwv
dGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4wNTU1NTU1NTU1NTwvdGQ+DQo8dGQgZGly
PSJydGwiPlvXmNec16TXldefINeo15DXqdeZXTwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0i
cnRsIj4gZWVlQG1pbmlzb2Z0LmNvLmlsPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9eQ15nXnteZ15nX
nCDXqNeQ16nXmV08L3RkPg0KPC90cj4NCjx0cj4NCjx0ZD4gPC90ZD4NCjx0ZCBkaXI9InJ0bCI+
PHN0cm9uZz48c3BhbiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7Ij7XpNeo15jX
mSDXlNeh16DXmdejPC9zcGFuPjwvc3Ryb25nPjwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0i
cnRsIj4g15HXmdeqINep157XqTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXqdedINeU16HXoNeZ16Nd
PC90ZD4NCjwvdHI+DQo8dHI+DQo8dGQgZGlyPSJydGwiPiDXlNeX16jXldeR15nXnSAzMzM8L3Rk
Pg0KPHRkIGRpcj0icnRsIj5b15vXqteV15HXql08L3RkPg0KPC90cj4NCjx0cj4NCjx0ZCBkaXI9
InJ0bCI+INeR15nXqiDXqdee16k8L3RkP
oronsultan
21-Apr-15 11:13am
View
Sub GetEmails(ByVal Server_Command As String)
Dim m_buffer() As Byte = System.Text.Encoding.UTF8.GetBytes(Server_Command.ToCharArray())
Dim stream_Reader As StreamReader
Dim TxtLine As String = ""
Try
m_sslStream.Write(m_buffer, 0, m_buffer.Length)
stream_Reader = New StreamReader(m_sslStream, Encoding.UTF8)
Do While stream_Reader.Peek() <> -1
TxtLine += stream_Reader.ReadLine() & vbNewLine
Loop
Dim einfo As New EmailInfo
TextBox1.Text = ""
Call Utilities.GetEmailInfo(TxtLine)
Dim AdpX As New OleDbDataAdapter, tbl As New DataTable, row As DataRow, sql As String
sql = "SELECT * FROM TempCalls"
AdpX = GetAdapter(sql, "\Service.mdb")
AdpX.Fill(tbl)
row = tbl.NewRow
row("License") = Val(GetFldSc("[מס' לקוח]", TxtLine))
row("LicName") = GetFldSc("[שם העסק]", TxtLine)
row("IDNumber") = GetFldSc("[ח.פ/ע.מ]", TxtLine)
row("GroupName") = GetFldSc("[סיווג העסק]", TxtLine)
row("VersionNumber") = GetFldSc("[מס' גרסה]", TxtLine)
row("Phone1") = GetFldSc("[טלפון ראשי]", TxtLine)
row("Email") = GetFldSc("[אימייל ראשי]", TxtLine)
row("BranchName") = GetFldSc("[שם הסניף]", TxtLine)
row("Address") = GetFldSc("[כתובת]", TxtLine)
row("City") = GetFldSc("[ישוב]", TxtLine)
row("Phone2") = GetFldSc("[טלפון בסניף]", TxtLine)
row("Fax") = GetFldSc("[פקס]", TxtLine)
row("ContactManName") = GetFldSc("[שם איש הקשר]", TxtLine)
row("Job") = GetFldSc("[תפקיד]", TxtLine)
row("PhoneDirect") = GetFldSc("[טלפון איש קשר]", TxtLine)
row("Extension") = Val(GetFldSc("[שלוחה]", TxtLine))
row("ContactManEmail") = GetFldSc("[אימייל איש קשר]", TxtLine)
row("ServiceSubject") = GetFldSc("[נושא שירות]", TxtLine)
row("CallDetails") = GetFldSc("[פרטי קריאה]", TxtLine)
If row.RowState = DataRowState.Detached Then
tbl.Rows.Add(row)
Else
row.EndEdit()
End If
AdpX.Update(tbl)
Dim TimeVal As String
TimeVal = Format(CDate(Date.Now), "dd/MM/yy hh:mm:ss")
sql = "SELECT * From ServiceCallsLast"
Dim RowX As DataRow
Dim TblLc As New DataTable
Dim AdpLc As OleDbDataAdapter = GetAdapter(sql, "\Service.mdb")
AdpLc.Fill(TblLc)
RowX = TblLc.Rows(0)
RowX.BeginEdit()
RowX("LastDateTimeEmail") = TimeVal
RowX.EndEdit()
AdpLc.Update(TblLc)
closeConn()
Catch ex As Exception
If locateBugs = True Then MsgBox(ex.Message & " - GetEmails")
If locateBugs = True Then Call ErrLog(ex)
End Try
End Sub
Public Function GetFldSc(fldToSearch As String, msgStr As String) As String
Dim str As String = ""
Dim index As Integer = msgStr.IndexOf("<tbody>")
Dim objRegEx As System.Text.RegularExpressions.Regex
msgStr.ToString.Replace(" ", "")
msgStr = msgStr.Substring(index, (msgStr.Length - index))
Dim bodyArray() As String = Split(msgStr, vbCrLf)
For i = 0 To bodyArray.Length - 1
If bodyArray(i).IndexOf(fldToSearch) <> -1 Then
str = bodyArray(i - 1).Substring(14, ((bodyArray(i - 1).Length - 5) - 14))
str.Replace(" ", "")
str = objRegEx.Replace(str, " ", "")
Exit For
End If
Next
If str = "<span>N/A</span>" Or str = " <span>N/A</span>" Then str = ""
Return str
End Function
oronsultan
21-Apr-15 10:52am
View
i am trying to use the msdn function but an exception accure saying:
"Illegal characters in path."
maybei'm wrong and this is not base64?
all i get is:
"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters."
how did you convert it? can u show me the code please?
oronsultan
21-Apr-15 10:39am
View
dont worry about that...
but my question is how can i convert the new base64 text to the old text i used to get? now, let me try to explain my self:
until last week, my code handle with specific type of encoded text (table in html concept) and utf8 which i decoded and push to our internel software. now, i get this base64 gibrish and i need to know how to analyze it. i found out a website doing this thing (http://www.freeformatter.com/base64-encoder.html#ad-output) but i dont know the code for it in vb.net. can u help me with this?
for example, the gibrish goes like this:
PHA+IDwvcD4NCjx0YWJsZSBzdHlsZT0iZmxvYXQ6IHJpZ2h0OyIgYm9yZGVyPSIxIiBhbGlnbj0i
cmlnaHQiPjxjYXB0aW9uPiA8L2NhcHRpb24+DQo8dGJvZHk+DQo8dHI+DQo8dGQ+IDwvdGQ+DQo8
dGQgZGlyPSJydGwiPjxzcGFuIHN0eWxlPSJ0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsiPjxz
dHJvbmc+16TXqNeY15kg15fXkdeo15Q8L3N0cm9uZz48L3NwYW4+PC90ZD4NCjwvdHI+DQo8dHI+
DQo8dGQgZGlyPSJydGwiPiAxPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9ee16EnINec16fXldeXXTwv
dGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4g15PXldeTINep15nXldeV16cg15XXkdeg
15nXlTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXqdedINeU16LXodenXTwvdGQ+DQo8L3RyPg0KPHRy
Pg0KPHRkIGRpcj0icnRsIj4gMTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXly7XpC/Xoi7Xnl08L3Rk
Pg0KPC90cj4NCjx0cj4NCjx0ZCBkaXI9InJ0bCI+INeo15XXkNeZINeX16nXkdeV1588L3RkPg0K
PHRkIGRpcj0icnRsIj5b16HXmdeV15XXkiDXlNei16HXp108L3RkPg0KPC90cj4NCjx0cj4NCjx0
ZCBkaXI9InJ0bCI+IDMuMjMyPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9ee16EnINeS16jXodeUXTwv
dGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4wNTU1NTU1NTU1NTwvdGQ+DQo8dGQgZGly
PSJydGwiPlvXmNec16TXldefINeo15DXqdeZXTwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0i
cnRsIj4gZWVlQG1pbmlzb2Z0LmNvLmlsPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9eQ15nXnteZ15nX
nCDXqNeQ16nXmV08L3RkPg0KPC90cj4NCjx0cj4NCjx0ZD4gPC90ZD4NCjx0ZCBkaXI9InJ0bCI+
PHN0cm9uZz48c3BhbiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7Ij7XpNeo15jX
mSDXlNeh16DXmdejPC9zcGFuPjwvc3Ryb25nPjwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0i
cnRsIj4g15HXmdeqINep157XqTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXqdedINeU16HXoNeZ16Nd
PC90ZD4NCjwvdHI+DQo8dHI+DQo8dGQgZGlyPSJydGwiPiDXlNeX16jXldeR15nXnSAzMzM8L3Rk
Pg0KPHRkIGRpcj0icnRsIj5b15vXqteV15HXql08L3RkPg0KPC90cj4NCjx0cj4NCjx0ZCBkaXI9
InJ0bCI+INeR15nXqiDXqdee16k8L3RkPg0KPHRkIGRpcj0icnRsIj5b15nXqdeV15FdPC90ZD4N
CjwvdHI+DQo8dHI+DQo8dGQgZGlyPSJydGwiPiAwNTUwMDAwMDA8L3RkPg0KPHRkIGRpcj0icnRs
Ij5b15jXnNek15XXnyDXkdeh16DXmdejXTwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRs
Ij4gNTU1NTU1NTU1NTU1NTwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXpNen16FdPC90ZD4NCjwvdHI+
DQo8dHI+DQo8dGQ+IDwvdGQ+DQo8dGQgZGlyPSJydGwiPjxzdHJvbmc+PHNwYW4gc3R5bGU9InRl
eHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOyI+16TXqNeY15kg15DXmdepINeU16fXqdeoPC9zcGFu
Pjwvc3Ryb25nPjwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4g15DXldeo15XXnzwv
dGQ+DQo8dGQgZGlyPSJydGwiPlvXqdedINeQ15nXqSDXlNen16nXqF08L3RkPg0KPC90cj4NCjx0
cj4NCjx0ZCBkaXI9InJ0bCI+INee16DXmyLXnDwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXqtek16fX
mdeTXTwvdGQ+DQo8L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4gMDUwNTAwMDAwMDwvdGQ+DQo8
dGQgZGlyPSJydGwiPlvXmNec16TXldefINeQ15nXqSDXp9ep16hdPC90ZD4NCjwvdHI+DQo8dHI+
DQo8dGQgZGlyPSJydGwiPjEgPC90ZD4NCjx0ZCBkaXI9InJ0bCI+W9ep15zXldeX15RdPC90ZD4N
CjwvdHI+DQo8dHI+DQo8dGQgZGlyPSJydGwiPiBlZWVlZUBtaW5pLmNvLmlsPC90ZD4NCjx0ZCBk
aXI9InJ0bCI+W9eQ15nXnteZ15nXnCDXkNeZ16kg16fXqdeoXTwvdGQ+DQo8L3RyPg0KPHRyPg0K
PHRkPiA8L3RkPg0KPHRkPg0KPHAgZGlyPSJydGwiPjxzdHJvbmc+PHNwYW4gc3R5bGU9InRleHQt
ZGVjb3JhdGlvbjogdW5kZXJsaW5lOyI+16TXqNeY15kg16fXqNeZ15DXlDwvc3Bhbj48L3N0cm9u
Zz48L3A+DQo8L3RkPg0KPC90cj4NCjx0cj4NCjx0ZCBkaXI9InJ0bCI+INek16fXldeT15XXqiDX
mdeV157XnzwvdGQ+DQo8dGQgZGlyPSJydGwiPlvXoNeV16nXkCDXqdeZ16jXldeqXTwvdGQ+DQo8
L3RyPg0KPHRyPg0KPHRkIGRpcj0icnRsIj4gZGM8L3RkPg0KPHRkIGRpcj0icnRsIj5b16TXqNeY
15kg16fXqNeZ15DXlF08L3RkPg0KPC90cj4NCjwvdGJvZHk+DQo8L3RhYmxlPg==
oronsultan
21-Apr-15 10:07am
View
hey again sergey, nice talking to you again.
actually, after reading (alot), i learned that base64 is as you say, not an encryption method. let me check out the link you gave me an i will give you an update.
oronsultan
21-Apr-15 4:32am
View
sorry. want happen again.
oronsultan
13-Oct-14 14:23pm
View
my dear friend,
thanks for replying. i guess i forgot mantion i'm not working on an Html prj but on a winform. btw, since i want my program to be at top design, i'm considering develop it on a WPF form. is it possible to do that in wpf?
oronsultan
16-Sep-14 3:58am
View
BSOD never appear during this fatal Err. i guess i'm stuck...
oronsultan
15-Sep-14 5:08am
View
o.k i did it finally but i'm not sure how does it help me... please please please give me more details.
oronsultan
15-Sep-14 5:01am
View
Deleted
Dear George, first thank u so much for the solution but i'm afraid i didn't understand you the all way. on my local pc, i did found the "sysdm.cpl" but what i didn't understand is the "Under the Advanced tab, click on the Startup and Recovery Settings... button"... where is this advanced tab located? b.t.w, i remined yoiu that i am working with vb6 so if you can give me a link about how to analyze the crash dump in vb6 instead of VS2010 will be good.
thanks again,
oron.
oronsultan
14-Sep-14 8:55am
View
Dear George, first thank u so much for the solution but i'm afraid i didn't understand you the all way. on my local pc, i did found the "sysdm.cpl" but what i didn't understand is the "Under the Advanced tab, click on the Startup and Recovery Settings... button"... where is this advanced tab located? b.t.w, i remined yoiu that i am working with vb6 so if you can give me a link about how to analyze the crash dump in vb6 instead of VS2010 will be good.
thanks again,
oron.
oronsultan
11-Sep-14 4:26am
View
i understand that the Err is not so clear but can u analyze the error above? because i really dont understand what it means.
e.g, what does it means "Exception Code: c0000005" or "Exception Offset: 0001665c" and what is the "Additional Information" written at the end of the error. please help!
oronsultan
10-Sep-14 4:12am
View
1. in our source code, we have a global ErrLog function that handle all of the exceptions and bugs. when exception occure, a MsgBox with the relevent Err number and which function throw the exception is shown. in this case, the exception is somewhere outside our code.
2. the DB located at the client side.
3. the client have about 7-8 stations. the Exception is at least in 4 stations that we know of.
oronsultan
10-Sep-14 2:34am
View
Dear George and Sergey,
first of all, Thank you for your quick reply.
George, about your question, 99.9 % of our clients using the hebrew option Since the
software is sold exclusively in Israel. handeling only in english is not an option to our company.
Sergey, i remeber you very well from one of my last QA here and you manage to prove me
your great thinking and knowledge :-)
regarding to your thoughts, converting the software to .Net is somthing we deeply considering but
that will take 1-2 years and it's not a quick solution to my problem.
as to your advice about debug the code, i'm afraid its not that simple.
Normally, when an error occurs on the client side, we pass the relevant database
through our FTP and use our vb6 environment and the debug tool to locate the Err.
Since we concluded that this case is not a problem that comes from the database there is no point in
doing it.
Possibility we thought and it is still considering, is installing the vb6 environment at the client side.
Certain action will help us in understanding the problem is the transfer of all of our source code
to the client side and run it on the
vb6 environment but it is clear to you that this is something that goes against the company's protocols.
Another thing we are considering is that we made may not install correctly the Msdatgrd.ocx.
we allready tryed this and so far no good.
no matter what, this is one of my wierd Err and finding a solution to this will be liberator.
if any idea comes in mined, please, let me know!
thank you so much,
oron.
oronsultan
13-Aug-14 4:14am
View
did that. no good. let me parse it for u:
first, i remove the word "subject" from the next statment:
s = "Subject: =?UTF-8?B?157Xmdeg15nXodeV16TXmCAtINee15fXnNen16og16rXnteZ15vXlCDXldep15nXqNeV?="
and that goes like this:
Info.SubjectData = Trim(Mid(S, I + 1))
then, comes the next code that extract only the rfc 2047 text, add the "=" at the begining and the end and encode it:
Dim str As String = Info.SubjectData
Dim x As Integer = str.IndexOf("=")
Dim fromName As String = str.Substring(x + 1, str.IndexOf("=", x + 1) - x - 1)
fromName = "=" & fromName & "="
str = System.Net.Mail.Attachment.CreateAttachmentFromString(String.Empty, Info.SubjectData).Name
what is my problem?
oronsultan
13-Aug-14 3:32am
View
I'm flattered. it was great reading this feedback coming from an expert in the field.
but still, The fat lady has yet to sing.
in solution num 2, i manage to encrypt the text but it seems that the new converted string is cut in the middle. for example, this RFC 2047:
"=?UTF-8?B?157Xmdeg15nXodeV16TXmCAtINee15fXnNen16og16rXnteZ15vXlCDXldep15nXqNeV?="
returns a good translation to hebrew but got cut after two anf a half word. Is problem familiar to you?
and here is the full code:
Info.SubjectData = Trim(Mid(S, I + 1)) 'stuff to structure
Dim str As String = Info.SubjectData
Dim x As Integer = str.IndexOf("=")
Dim fromName As String = str.Substring(x + 1, str.IndexOf("=", x + 1) - x - 1)
fromName = "=" & fromName & "="
str = System.Net.Mail.Attachment.CreateAttachmentFromString(String.Empty, Info.SubjectData).Name
oronsultan
13-Aug-14 0:31am
View
that was amazing!!! you are great!!! thanks a thousand times!!!
oronsultan
12-Aug-14 3:33am
View
Dear Sergey,
first, i must give my appreciation regarding your attention toards my problem.
thanks to your guidence, i mangae (finally) to break the email to parts and handle each part. i also manage to convert the body of the email (the message itself) to hebrew and it looks great. however, in a wierd way, the "subject" part is a pickle. all i get in the subject, instead of hebrew is this:
"=?UTF-8?B?15HXk9eZ16fXlA==?="
my main thaught is that it is encoded in utf-8 so i tryed to convert it like this:
Dim byt As Byte() = System.Text.Encoding.UTF8.GetBytes(strData)
Convert.ToBase64String(byt)
and then:
System.Convert.FromBase64String(strData.Replace(vbCrLf, vbNullString))
and finally:
Encoding.UTF8.GetChars(DecodeBase64ToBytes(strData))
but no luck. can u please tell me how can i find the encoded source of the "subject" and how can i decode it to hebrew?
thanks again,
oron.
oronsultan
11-Aug-14 6:35am
View
Dear SA,
i am very sorry to trouble you once again. during the last hours i tryed over and over to find the answer according to your soloution and got nothing. i have difficult to understand all the process. for a start, am i suppose to divide the income email to many part according to the encoding of them? does one have a utf-8 when other is base64? i tryed to built a function according to the MSDN link you gave me and nothing. can you please, please, please show me how the code need to look like? i am loosing my self here.
anyway, this is my result so far:
"+OK message follows
Delivered-To: minisoft365@gmail.com
Received: by 10.60.138.134 with SMTP id qq6csp59048oeb;
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Return-Path: <oronsultan@gmail.com>
Received-SPF: pass (google.com: domain of oronsultan@gmail.com designates 10.182.137.195 as permitted sender) client-ip=10.182.137.195
Authentication-Results: mr.google.com;
spf=pass (google.com: domain of oronsultan@gmail.com designates 10.182.137.195 as permitted sender) smtp.mail=oronsultan@gmail.com;
dkim=pass header.i=@gmail.com
X-Received: from mr.google.com ([10.182.137.195])
by 10.182.137.195 with SMTP id qk3mr23322017obb.5.1407679158835 (num_hops = 1);
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=GiapFM9Ie1h9ObO0ZnJK9hU3mvtfNKhqOkGm3iLhnig=;
b=oQuJ959hlOKTI3hpIMaScfxUWVxVX5hakoF6XC5HD+ZG7Z/KD0LIiJY0Q6Jt8VnTeL
p3OanHvllBAvM0DXvgDHnpLzmwfIJCJHVgEtbMeKNMDB2Y+4pCfFDS1SNk4tMiEdjcgW
lNfJX2MFlwrUpu4uJipJksJ6JQnklNgNA0R5sdnF5c8kIqJPML2vWGIITJsIzM1zWRgm
ywOpOlHKRfSNfsPS6b8Pl37iBM9uiKCadQ7pvOp91LvsnyisEN3qQdhlj5q7G1rCQNcD
agoCZRq0EPFdFCsQVXRAQ1eop2nUBmGg1iscRjxT4AtK639VA9MTKjBQye7aLrtVPtzc
h8uw==
MIME-Version: 1.0
X-Received: by 10.182.137.195 with SMTP id qk3mr23322017obb.5.1407679158830;
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Received: by 10.76.153.200 with HTTP; Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Date: Sun, 10 Aug 2014 16:59:18 +0300
Message-ID: <cacgdqkv7rsec10s_r7xghzt5zkcxdmpo1pgp0fct=kkh+cou0a@mail.gmail.com>
Subject: =?UTF-8?B?15HXk9eZ16fXlA==?=
From: =?UTF-8?B?15DXldeo15XXnyDXodeV15zXmNef?= <oronsultan@gmail.com>
To: oron sultan <minisoft365@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c361f6384c8e050046d84b
--001a11c361f6384c8e050046d84b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDMNCg==
--001a11c361f6384c8e050046d84b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64
PGRpdiBkaXI9InJ0bCI+Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDM8L2Rpdj4NCg==
--001a11c361f6384c8e050046d84b--
.
"
and this is my functions (only the first one work and active):
Sub GetEmails(ByVal Server_Command As String)
Dim m_buffer() As Byte = System.Text.Encoding.ASCII.GetBytes(Server_Command.ToCharArray())
Dim stream_Reader As StreamReader
Dim TxtLine As String = ""
Try
m_sslStream.Write(m_buffer, 0, m_buffer.Length)
stream_Reader = New StreamReader(m_sslStream, Encoding.UTF8)
Do While stream_Reader.Peek() <> -1
TxtLine += stream_Reader.ReadLine() & vbNewLine
Loop
TextBox1.Text = TxtLine
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Public Sub EncodeWithString(x As String)
Dim inFile As System.IO.FileStream
Dim binaryData() As Byte
Try
inFile = New System.IO.FileStream(x, System.IO.FileMode.Open, System.IO.FileAccess.Read)
ReDim binaryData(inFile.Length)
Dim bytesRead As Long = inFile.Read(binaryData, 0, inFile.Length)
inFile.Close()
Catch exp As System.Exception
' Error creating stream or r
oronsultan
11-Aug-14 3:04am
View
what should i put instead of the "inputFileName"?
oronsultan
11-Aug-14 2:49am
View
Deleted
o.k. i'm happy to know that the message is not encrypted but as you can see, this line:
"Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDMNCg==
--001a11c361f6384c8e050046d84b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64"
which suppose to be the body of the message is in gibrish. how can i convert it to hebrew (you should take a look again at the code at the top of the page).
oronsultan
11-Aug-14 1:31am
View
dear SA, here is the full email as i see it:
+OK message follows
Delivered-To: minisoft365@gmail.com
Received: by 10.60.138.134 with SMTP id qq6csp59048oeb;
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Return-Path: <oronsultan@gmail.com>
Received-SPF: pass (google.com: domain of oronsultan@gmail.com designates 10.182.137.195 as permitted sender) client-ip=10.182.137.195
Authentication-Results: mr.google.com;
spf=pass (google.com: domain of oronsultan@gmail.com designates 10.182.137.195 as permitted sender) smtp.mail=oronsultan@gmail.com;
dkim=pass header.i=@gmail.com
X-Received: from mr.google.com ([10.182.137.195])
by 10.182.137.195 with SMTP id qk3mr23322017obb.5.1407679158835 (num_hops = 1);
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=GiapFM9Ie1h9ObO0ZnJK9hU3mvtfNKhqOkGm3iLhnig=;
b=oQuJ959hlOKTI3hpIMaScfxUWVxVX5hakoF6XC5HD+ZG7Z/KD0LIiJY0Q6Jt8VnTeL
p3OanHvllBAvM0DXvgDHnpLzmwfIJCJHVgEtbMeKNMDB2Y+4pCfFDS1SNk4tMiEdjcgW
lNfJX2MFlwrUpu4uJipJksJ6JQnklNgNA0R5sdnF5c8kIqJPML2vWGIITJsIzM1zWRgm
ywOpOlHKRfSNfsPS6b8Pl37iBM9uiKCadQ7pvOp91LvsnyisEN3qQdhlj5q7G1rCQNcD
agoCZRq0EPFdFCsQVXRAQ1eop2nUBmGg1iscRjxT4AtK639VA9MTKjBQye7aLrtVPtzc
h8uw==
MIME-Version: 1.0
X-Received: by 10.182.137.195 with SMTP id qk3mr23322017obb.5.1407679158830;
Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Received: by 10.76.153.200 with HTTP; Sun, 10 Aug 2014 06:59:18 -0700 (PDT)
Date: Sun, 10 Aug 2014 16:59:18 +0300
Message-ID: <cacgdqkv7rsec10s_r7xghzt5zkcxdmpo1pgp0fct=kkh+cou0a@mail.gmail.com>
Subject: =?UTF-8?B?15HXk9eZ16fXlA==?=
From: =?UTF-8?B?15DXldeo15XXnyDXodeV15zXmNef?= <oronsultan@gmail.com>
To: oron sultan <minisoft365@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c361f6384c8e050046d84b
--001a11c361f6384c8e050046d84b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDMNCg==
--001a11c361f6384c8e050046d84b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64
PGRpdiBkaXI9InJ0bCI+Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDM8L2Rpdj4NCg==
--001a11c361f6384c8e050046d84b--
.
if you could explain your last sentence i will appriciate it.
oronsultan
10-Aug-14 17:06pm
View
first of all, thanks for your reply.
seconed, i hope i understood u well. here is an example of encrypted hebrew headers:
"Y2hla2luZ9eQ15HXkteT15TXldeW15fXmNeZMTAyMDMNCg=="
as u can see, its not hebrew.
third, i want to understand what u saying: in order to encode the email into hebrew, i need to figure out the source of encrypted text? i am confused... please take it easy on me, thie subject is new for me.
oronsultan
10-Aug-14 16:01pm
View
so i understand that u the expert of this month and a legend in "code project" but so far u didnt answerd my question (althaugh u dont have to). all i am asking is how can i read my hebrew emails in a clear way? pleaee, answer this and not arround this. if u can attach a code it will be great.
oronsultan
10-Aug-14 14:15pm
View
the "ISO-8859-8" is only one of my trials. i tryed "Windows-1255" also. can u tell me how to encode it currectly?
oronsultan
7-Aug-14 6:48am
View
What is the difference between them?
could you please tell me what am i doing wrong???
oronsultan
7-Aug-14 6:40am
View
does anyone have a full code of a way to extract emails from gmail?
oronsultan
7-Aug-14 6:35am
View
when using port 995, the POPResponse is "Nothing".
when using port 587, the POPResponse is "220 mx.google.com ESMTP z5sm8935828wje.49 - gsmtp".
Show More